June 12, 200818 yr hi all im trying DIV's for first time and im asking if there is any code must added to the CSS so the html page can be display correctly when browsing with mozilla and netscape?? at IE evry thing going ok i attach my files and plz give me your idea <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> <title>:: Academic Center for College Textbooks ::</title> <link rel="stylesheet" href="Style/ACCT.css" type="text/css"> </head> <body class="BgColor"> <div class="MainDiv autoMargin BgColor"> <div class="BgColor upSpace"></div> <div class="blackBG blackBoxSize"> <img border="0" src="images/Home.gif" width="47" height="20" align="right"></div> <div id="MainMenu"> </div> <div class="blackBG upSpace"></div> <div id="mainSpace"></div> <div class="LRSpace BgColor"></div> <div id="WelcomBox"> <div id="WelcomTitle"> </div> <div class="MainBoxBord MainBoxSize"></div> </div> <div id="BooksFlash"> <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="263" height="280"> <param name="movie" value="images/AccT.swf"> <param name="quality" value="High"> <embed src="images/AccT.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="263" height="280" quality="High"></object> </div> </div> <div id="footerBG"></div> </body> </html> and... body { margin : 0px; background-image: url('../images/BGUp.gif'); background-repeat: repeat-x; } body { text-align: center; } .MainDiv{ width:726px; /* height:648px;*/ border-left: 1px solid #9a9a9a; border-right: 1px solid #9a9a9a; } .BgColor{ background-color: #f7f7f7; } .blackBG{ background-color: #000000; } .blackBoxSize{ width:100%; height:20px; } .autoMargin{ margin-left: auto; margin-right: auto; } .upSpace{ width:100%; height:6px; font-size:1px; } #MainMenu{ width:100%; height:114px; background-image: url('../images/MenuBG.jpg'); background-repeat: repeat-x; } #mainSpace{ width:100%; height:12px; } .LRSpace{ width:29px; height:100%; float: left; } #WelcomBox{ width:423px; height:309px; float: left; } #BooksFlash{ width:272px; height:309px; float: left; } #WelcomTitle{ width:423px; height:23px; background-image: url('../images/Titles/Welcome.gif'); background-repeat: no-repeat; } .MainBoxBord{ border-left: 1px solid #d4d4d4; border-right: 1px solid #d4d4d4; border-bottom: 1px solid #d4d4d4; } .MainBoxSize{ width:423px; height:271px; } #footerBG{ width:100%; height:52px; background-color:#fdbb4b; }
June 12, 200818 yr Hi, I'm glad you have decided to use divs, it is the best way to achieve effective web design. It is difficult to understand what layout you want to achieve as the layout is a bit unconventional. It seems you are still designing with tables in mind Try not to use spacer divs, this would necessary when designing with tables but with divs and css it is recommended to use margin and padding. If you review your design with this in mind I you should find the layout is a lot more multi-browser friendly. Regards, Mike from www.everydayprint.co.uk
Create an account or sign in to comment