Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

1 post

Wannabe Geek

Topic # 64893 24-Jul-2010 21:06
Send private message

Hi guys. First post. Have just got into web design in the last month and am learning as i go. I am building a site for a friend and for some reson i really wanted to make a opaque (semi-transparent) border around the main container. I have a image for the main background so couldnt just use a color to get effect. Now, after about 5-6hrs of fumbling around a finaly got it and it looked perfect in IE, but when viewed in FF or GC iits NOT perfect.
So, i made the opaque border by placing an empty div with size to match my main container with the border that i wanted opaque, at the bottom of my page and used a -1500px placement and z-axis:-10; to get it to overlap the main container above it thus locating the border around my main container and then made this div opaque to get exactly what i wanted.

Now problem in FF and GC is that they are still show the empty div at the bottom of my page extending 1500px below my content and the overflow:invisible is not affecting it so there is a hugh empty space at the bottom in the browsers. Have also tried wrapping container in opaque div but that just makes everything opaque(and setting container opasity to 100,1 doesnt help, and have tried placing the opaque div at the top and then positioned it over the container below, but then just get the same problem except then theres a gap at the top.
If anyone can suggest a solution to this i would be extremely thankful.
my site is

thanks heaps, hope this make sence. ps. im new to web design so excuss the code. cheers

Create new topic
2732 posts

Uber Geek
+1 received by user: 287

  Reply # 355928 24-Jul-2010 22:12
Send private message

What you are saying, is you want to be able to see the background, and have the middle bits in a box in the centre?

Like an invisible border?

I just did a local hack of it. Deleted your overflow border DIV

Added a few

lines to get rid of overflows

I replaced your margin-... set in the container and put
margin: 0 auto (0 top and bottom, scalable sides)

And on your header add a "margin-top 60px;" or so to drop it down some.

And the footer a "margin-bottom 60px;" or similar. Both look fine in IE and FF then

Margins are your friend since you are using a container DIV.

It designates the space around the DIVs distance from its parent before being an actual element.

(you have to imagine the white space being the BG.. I didnt do a full scrape)

2732 posts

Uber Geek
+1 received by user: 287

  Reply # 355934 24-Jul-2010 22:53
Send private message

On second read.. if you want a semi transparent/opaque 5-10px border around the outside of your middle div, you be stoofed.

Reading up it can't be done at this point as all aspects of borders/opaqe properties are inhereted to the child DIVs and can't be.. un-inherited

You could however, perhaps make a couple of transparent gifs and put one on each corner of the internal divs to fake it?

Or make a larger background image (not ideal) with a colouration at the same area as the container size

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Intel introduces new NUC kits and NUC mini PCs
Posted 16-Aug-2018 11:03

The Warehouse leaps into the AI future with Google
Posted 15-Aug-2018 17:56

Targus set sights on enterprise and consumer growth in New Zealand
Posted 13-Aug-2018 13:47

Huawei to distribute nova 3i in New Zealand
Posted 9-Aug-2018 16:23

Home robot Vector to be available in New Zealand stores
Posted 9-Aug-2018 14:47

Panasonic announces new 2018 OLED TV line up
Posted 7-Aug-2018 16:38

Kordia completes first live 4K TV broadcast
Posted 1-Aug-2018 13:00

Schools get safer and smarter internet with Managed Network Upgrade
Posted 30-Jul-2018 20:01

DNC wants a safer .nz in the coming year
Posted 26-Jul-2018 16:08

Auldhouse becomes an AWS Authorised Training Delivery Partner in New Zealand
Posted 26-Jul-2018 15:55

Rakuten Kobo launches Kobo Clara HD entry level reader
Posted 26-Jul-2018 15:44

Kiwi team reaches semi-finals at the Microsoft Imagine Cup
Posted 26-Jul-2018 15:38

KidsCan App to Help Kiwi Children in Need
Posted 26-Jul-2018 15:32

FUJIFILM announces new high-performance lenses
Posted 24-Jul-2018 14:57

New FUJIFILM XF10 introduces square mode for Instagram sharing
Posted 24-Jul-2018 14:44

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.