| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Royalty™
Join Date: Feb 2003
Location: Manchester (UK)
Posts: 3,242
|
Floats
http://www.narate.co.uk/leander I need a way of getting those images that are floating left and right to sit flush the container div and have not got a clue how to do that. Also aligning text in the div to the top...whats that all about, not working for me so far. Im not supposed to be coding it but I fancied giving it a whirl just for a learning experience. TIA |
|
|
|
|
|
#4 (permalink) | |
|
Registered User
Join Date: Dec 2004
Posts: 42
|
Quote:
It'll be 800px (width) by 1px (height) repeating on the y axis. |
|
|
|
|
#5 (permalink) |
|
Royalty™
Join Date: Feb 2003
Location: Manchester (UK)
Posts: 3,242
|
There are 3 different images used to create the effect. 1 - The light to dark top gradient 2 - The shadow tile with the one base colour 3 - Top image with gradient and andd shadow the only way I think I can do it is by making a master container that is 810 float the left and rightgradient then set an image in these left and right floats that are the top image. |
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Dec 2004
Posts: 42
|
What's so hard about that? How is it not proper CSS? Anyway, I should have said 810px, not 800px. Make the container 810px and have the 1x810px background tiling on the y axis. White in the middle and 5px of shadow either side. To get around the problem of the top area of shadow (the lighter area) you can have the background as a png with transparency enabled. (ie: in Photoshop the shadow might be opacity 70% or something, and you can save that out as a png) So you've got that background gradient and the shadow png can just go over it seamlessly. (you'll need a special patch for transparency to work in IE though) |
|
|
|
#9 (permalink) |
|
Registered User
Join Date: Dec 2004
Posts: 42
|
Does it work in other browsers? Give it a try at 24-bit. Use that too, for Explorer: http://homepage.ntlworld.com/bobosola/pnghowto.htm |
|
![]() |