racino Posted April 2, 2006 Share Posted April 2, 2006 Hi there,I have a problem with CSS layout. My script works great.... but only in IE (see how i want it to look like -> here) , not in Opera and Mozilla ( ex. here). Here is the source live demo of this ... click.If you have any idea and you can help me i would be thankful.CheersMarcin Link to comment Share on other sites More sharing options...
mreddy Posted April 2, 2006 Share Posted April 2, 2006 Hi,I am not an expert... but adding float:left to your #bottom fixed the positioning. Plus removing the text-align:center from the body and adding margin:auto to main seems to fix your layout.Hope this helps,Eddy <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"><title>Untitled Document</title><style>body { font-size:11px; color:black; line-height:14px; width:100%; height:100%; margin:0px; padding:0px; font-family:Tahoma,Verdana,Arial;}#main { width:727px; margin:auto;}#menu { background-color:#FFCCFF; width:100%; height:114px;}#hand { width:502px; height:150px; float:left; clear:none; background-color: #9999FF;}#content { background-color: #00CCCC; width:502px; height:157px; float:left; clear:none;}#right { width:225px; height:200px; float:right; clear:none; background-color: red; text-align:left;}#bottom { width:100%; float:left; height:100px; text-align:left; background-color:yellow;}</style></head><body><div id="main"> <div id="menu"></div> <div id="hand"></div> <div id="right"></div> <div id="content"></div> <div id="bottom"></div></div></body></html> Link to comment Share on other sites More sharing options...
racino Posted April 2, 2006 Author Share Posted April 2, 2006 genious :)Thanks a lot dude GreetingsM. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now