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


darthkiwi

1 post

Wannabe Geek


#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
piermarkupholstery.co.nz

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

Create new topic
Oblivian
7296 posts

Uber Geek

ID Verified

  #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
overflow:hidden;

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.

http://img192.imageshack.us/img192/6231/furnitureh.jpg

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



Oblivian
7296 posts

Uber Geek

ID Verified

  #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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.