how do I center an image that is in position: absolute;
trying to center the shadows, to work in both IE and FF.
www.voigrafic.com/golfsite/
how do I center an image that is in position: absolute;
trying to center the shadows, to work in both IE and FF.
www.voigrafic.com/golfsite/
Try this:
Code:.container_shadow { background:transparent url(http://www.voigrafic.com/golfsite/images/shadow.png) repeat scroll 0 0; float:left; height:1000px; position:absolute; right:3.1%; text-align:center; width:100%; }
--------------------------------------------------Reviews, Interviews, Tutorials, and STUFF--------------------------------------------------Home of the SexyBookmarks WordPress plugin
Anexxion (07-30-2008)
You could also add this to your "#container" to make it stretch to the bottom:
Code:#container { background:#F5F5F5 url(http://www.voigrafic.com/golfsite/images/bg_pat.gif) repeat scroll center top; margin:0;min-height:100%;padding:0; width:100%; }
--------------------------------------------------Reviews, Interviews, Tutorials, and STUFF--------------------------------------------------Home of the SexyBookmarks WordPress plugin
Anexxion (07-30-2008)
doesn't work
When you position element absolutely, setting the element to float does'nt makes sense:
Try t remove highlighted. There's no easy way to center an element that is positioned absolutely, you need to play with the left/top/bottom/right property to get it work.Code:.container_shadow { background:transparent url(http://www.voigrafic.com/golfsite/images/shadow.png) repeat scroll 0 0;float:left;height:1000px; position:absolute; right:3.1%; text-align:center; width:100%; }
One problem is that the element that is positioned absolutely will always be on that position no matter what the screen resolution is, that should be a drawback.
You might find it useful to set container_shadow div's parent element a relative position.
Hope that makes sense.
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
Anexxion (07-30-2008)
alright thanks that helped, now I have another problem
how can I align the search button and the textbox together?
http://www.voigrafic.com/golfsite/
it is seperated
Addfloat:lefton search1 and input class in your CSS.
Hope that helps.
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
Bookmarks