-
CSS Div auto malfunction
Hey guys, normally I am quite comfortable creating divs that autoflow based on the content within the div, however I dont know whether im looking my touch at CSS, but for the life of me I cannot fix this css error. I want the text to autoflow and the black background it is nested in to adjust if the text goes over so that it fits. Here is the CSS and HTML, thanks for the help guys. Could do with telling where I've gone wrong. CSS CODE: body { background-color: #222; } #wrapper { text-align: center; background-color: #000; width: 1024px; height: 145px; margin-top: 0px; margin-left: auto; margin-right: auto; } #top_wrapper { background-color: #000; width: 1024px; height: 145px; margin-top: 0px; margin-left: auto; margin-right: auto; } #logo { float: left; background-image: url('./images/logo.png'); background-repeat: no-repeat; width: 155px; height: 64px; margin-top: 40px; margin-left: 40px; } #slogan { float: left; background-color: #000; width: 196px; height: 24px; margin-top: 60px; margin-left: 230px; } #number { float: right; background-color: #000; width: 200px; height: 20px; margin-top: 60px; margin-right: 45px; } #navigation { background-image: url('./images/nav.png'); background-repeat: repeat-x; width: 1024px; height: 38px; margin: 0 auto; } #banner { background-color: #000; width: 1024px; height: 300px; margin: 0 auto; } @font-face { font-family: 'interstate_cond_mono_-_lgtRg'; src: url('interstate_cond_mono_-_lgt-webfont.eot'); src: url('interstate_cond_mono_-_lgt-webfont.eot?#iefix') format('embedded-opentype'), url('interstate_cond_mono_-_lgt-webfont.woff') format('woff'), url('interstate_cond_mono_-_lgt-webfont.ttf') format('truetype'), url('interstate_cond_mono_-_lgt-webfont.svg#interstate_cond_mono_-_lgtRg') format('svg'); font-weight: normal; font-style: normal; } span.slogan, span.number { font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 25px; font-weight: normal; font-style: normal; color: #9D9D9B; } span.designed { font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 23px; font-weight: normal; font-style: normal; color: #7F8184; float: right; } span.webnw { font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 18px; font-weight: normal; font-style: normal; color: #000; float: right; padding: 0; margin: 0; } #menu { width: 1024px; height: 35px; margin-top: 0px; padding: 0; } ul { float: left; text-align: left; margin-top: 0; padding-top: 5px; list-style-type: none; } li { display: inline; padding: 0 70px 0 0; font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 25px; font-weight: normal; font-style: normal; color: #FFF; } a.nav { color: #FFF; text-decoration: none; padding: 0; } #rotator-wrapper { width: 1024px; height: 300px; margin-top: 0px; } #main { background-color: #000; width: 1024px; height: 220px; margin: 0 auto; } #textleft { float: left; width: 300px; height: auto; margin-top: 45px; margin-left: 45px; } #textmain { float: left; width: 940px; height: auto; margin-top: 45px; margin-left: 45px; } #ordernow { float: left; width: 250px; height: auto; margin-top: 105px; margin-left: 45px; } #textright { float: left; width: 300px; height: 180px; margin-top: 45px; margin-left: 45px; } h2 { font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 30px; color: #9D9D9B; text-align: left; margin: 0; padding: 0; } h3 { font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 30px; color: #9D9D9B; text-align: right; margin: 0; padding: 0; } h4 { font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 30px; color: #000; text-align: left; margin: 0; padding: 0; } h5 { font-family: 'interstate_cond_mono_-_lgtRg'; font-size: 30px; color: #000; text-align: right; margin: 0; padding: 0; } hr { color: #999999; } p { text-align: left; color: #FFF; font-family: arial; font-size: 14px; } p.textright { text-align: right; color: #FFF; font-family: arial; font-size: 14px; } p.footer { text-align: left; color: #000; font-family: arial; font-size: 12px; } p.social { text-align: right; color: #000; font-family: arial; font-size: 12px; } span.copyright { text-align: left; color: #000; font-family: arial; font-size: 11px; margin-top: 4px; } span.footerlinks{ float: right; text-align: right; color: #000; font-family: arial; font-size: 11px; margin-top: 0px; } #footer { background-image: url('./images/footer.png'); background-repeat: repeat-x; background-color: #FF9100; width: 1024px; height: 220px; margin: 0 auto; } #address { float: left; width: 200px; height: auto; margin-top: 20px; margin-left: 45px; } #follow { float: right; width: 350px; height: 200px; margin-top: 20px; margin-right: 40px; } #terms { background-color: #FF8F00; width: 1024px; height: 35px; margin: 0 auto; } #text { width: 700px; height: auto; padding-bottom: 10px; } #copyright { text-align: left; width: 300px; height: 20px; margin-top: 0px; margin-left: 45px; float: left; } #footerlinks { text-align: right; width: 300px; height: 20px; margin-top: 0px; margin-right: 40px; float: right; } HTML CODE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <title>Mistrys ...</title> <link rel="stylesheet" type="text/css" href="style.css"/> </head> <body> <div id="top_wrapper"> <div id="logo"></div> <div id="slogan"><span class="slogan">keeping food simple</span></div> <div id="number"><span class="number">01204-527-139</span></div> </div> <div id="navigation"> <div id="menu"> <ul> <li><a href="index.html" class="nav">Home</a></li> <li><a href="about-us.html" class="nav">About Us</a></li> <li><a href="browse-menu.html" class="nav">Browse Menu</a></li> <li><a href="snapshots.html" class="nav">Snapshots</a></li> <li><a href="facilities.html" class="nav">Facilities</a></li> <li><a href="contact-us.html" class="nav">Contact Us</a></li> </ul> </div> </div> <div id="banner"> <div id="rotator-wrapper"> <!-- Begin DWUser_EasyRotator --> <script type="text/javascript" src="http://c520866.r66.cf2.rackcdn.com/1/js/easy_rotator.min.js"></script> <div class="dwuserEasyRotator" style="width: 1024px; height: 300px; position:relative; text-align: left;" data-erConfig="{autoplayEnabled:false, lpp:'102-105-108-101-58-47-47-47-67-58-47-68-111-99-117-109-101-110-116-115-37-50-48-97-110-100-37-50-48-83-101-116-116-105-110-103-115-47-109-105-116-99-104-101-108-108-95-109-111-114-116-111-110-47-77-121-37-50-48-68-111-99-117-109-101-110-116-115-47-69-97-115-121-82-111-116-97-116-111-114-80-114-101-118-105-101-119-47-112-114-101-118-105-101-119-95-115-119-102-115-47'}" data-erName="rotator" data-erTID="{yzt2cr7mlj2858287460531}"> <div data-ertype="content" style="display: none;"><ul data-erlabel="Main Category"> <li> <img class="main" src="images/food.png" /> <img class="thumb" src="images/food.png" /> </li> </ul> </div> <div data-ertype="layout" data-ertemplateName="NONE" style=""> <div class="erimgMain" style="position: absolute; left:0;right:0;top:0;bottom:0;" data-erConfig="{___numTiles:3, scaleMode:'fillArea', duration:800, imgType:'main', alwaysPreviousButton:true, __loopNextButton:false, __arrowButtonMode:'rollover'}"> <div class="erimgMain_slides" style="position: absolute; left:0; top:0; bottom:0; right:0;"> <div class="erimgMain_slide"> <div class="erimgMain_img" style="position: absolute; left: 0; right: 0; top:0;bottom:0;"></div> </div> </div> <!-- <div class="erimgMain_arrowLeft" style="position:absolute; left: 10px; top: 50%; margin-top: -15px;" data-erConfig="{image:'circleSmall', image2:'circleSmall'}"></div> <div class="erimgMain_arrowRight" style="position:absolute; right: 10px; top: 50%; margin-top: -15px;"></div> --> </div> <div class="" style="position: absolute; left:0; right:0; bottom: 20px; padding: 7px 200px 7px 20px; background: #6A8B39; color: #FFF; font-family: Georgia, 'Times New Roman', Times, _serif; text-align: left;"> <p class="erdynamicText" data-erfield="title" style="padding: 0; margin: 0 0 3px 0; font-weight: bold; font-size: 22px;"></p> <p class="erdynamicText" data-erfield="desc" style="padding: 0; margin: 0; font: 12px/16px Arial,_sans;"></p> </div> <div class="erdots" style="overflow: hidden; margin: 0; font-size: 10px; font-family: 'Lucida Grande', 'Lucida Sans', Arial, _sans; color: #FFF; position: absolute; right:6px; bottom:30px; width:200px;" data-erConfig="{showText:false}" align="center"> <div class="erdots_wrap" style="wasbackground-color: #CFC; float: right;" align="left"> <!-- modify the float on this element to make left/right/none=center aligned. --> <span class="erdots_btn_selected" style="padding-left: 0; width: 21px; height: 20px; display: inline-block; text-align: center; vertical-align: middle; line-height: 20px; margin: 0 2px 0 0; cursor: default; background: url(http://easyrotator.s3.amazonaws.com/1/i/rotator/dots/export/20_14_wite_65.png) top left no-repeat;"> </span> <span class="erdots_btn_normal" style="padding-left: 0; width: 21px; height: 20px; display: inline-block; text-align: center; vertical-align: middle; line-height: 20px; margin: 0 2px 0 0; cursor: pointer; background: url(http://easyrotator.s3.amazonaws.com/1/i/rotator/dots/export/20_14_wite_35.png) top left no-repeat;"> </span> <span class="erdots_btn_hover" style="padding-left: 0; width: 21px; height: 20px; display: inline-block; text-align: center; vertical-align: middle; line-height: 20px; margin: 0 2px 0 0; cursor: pointer; background: url(http://easyrotator.s3.amazonaws.com/1/i/rotator/dots/export/20_14_wite_65.png) top left no-repeat;"> </span> </div> </div><div class="erabout erFixCSS3" style="color: #FFF; text-align: left; background: #000; background:rgba(0,0,0,0.93); border: 2px solid #FFF; padding: 20px; font: normal 11px/14px Verdana,_sans; width: 300px; border-radius: 10px; display:none;"> This <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/" target="_blank">jQuery slider</a> was created with the free <a style="color:#FFF;" href="http://www.dwuser.com/easyrotator/" target="_blank">EasyRotator</a> software from DWUser.com. <br /><br /> Need a powerful <a style="color:#FFF;" href="http://www.dwuser.com/flashslideshow/" target="_blank">Flash slideshow</a> creator with built-in iPhone/iPad/Android support? EasyRotator is supported by the <a style="color:#FFF;" href="http://www.dwuser.com/flashslideshow/" target="_blank">XML Flash Slideshow v4 Software</a>. <br /><br /> <a style="color:#FFF;" href="#" class="erabout_ok">OK</a> </div> <noscript> Rotator powered by <a href="http://www.dwuser.com/easyrotator/">EasyRotator</a>, a free and easy jQuery slider builder from DWUser.com. Please enable Javascript to view. </noscript> <script type="text/javascript">/*Avoid IE gzip bug*/(function(b,c,d){try{if(!b[d]){b[d]="temp";var a=c.createElement("script");a.type="text/javascript";a.src="http://easyrotator.s3.amazonaws.com/1/js/nozip/easy_rotator.min.js";c.getElementsByTagName("head")[0].appendChild(a)}}catch(e){alert("EasyRotator fail; contact support.")}})(window,document,"er_$144");</script> </div> </div> <!-- End DWUser_EasyRotator --> </div> </div> <div id="main"> <div id="textmain"> <h2>About us</h2><hr> <p><br> At Mistrys Catering we believe in simplicity. <br>Our traditional recipes have been passed down through generations, bringing real authentic indian dishes to your event. </p> </div> </div> <div id="footer"> <div id="address"> <h4>Find Us</h4> <p class="footer"> Mistrys Catering<br> Minerva House<br> 8 - 10 Minerva Road<br> Farnworth<br> Bolton<br> BL4 0HX<br><br> T: 01204 397 343<br> E: info@mistryscatering.co.uk </p> </div> <div id="follow"> <h5>Follow Us</h5> <p class="social"> <img src="./images/facebook.png"><img src="./images/twitter.png"><img src="./images/in.png"> </p> <span class="designed">Designed by</span><br><br> <span class="webnw">Web Northwest</span><br><br> </div> </div> <div id="terms"> <div id="copyright"><span class="copyright">Mistrys © 2012 | All rights reserved</span></div> <div id="footerlinks"><span class="footerlinks"> AVM Solutions UK | Web Northwest<span></div> </div> </body> </html>
-
Updating two fields in a db from two forms
Hi guys, I have arrived at a stand still in my project. I am not familiar with the syntax layout for mysql functions. I have two form boxes and wish for the amounts entered to be updated in a database. One box has an ID and the other has a price, I want the price amount to be updated in the database based on the id entered matching the one in the database. Here is my code, I would appreciate the update sql function so that I can make this work, I know it is something like "update starters set price = $amount where id=$id but like I said I dont know the appropriate syntax. My code is below, thanks again guys. FORM CODE: $result= mysql_query("SELECT title, nameid, price FROM starters"); while($row = mysql_fetch_array($result)) { $nameid = $row['nameid']; $title = $row['title']; $existprice = $row['price']; echo"<table>"; echo"<tr>"; echo"<td width=\"80px\">"; echo"<p class=\"form2\">"; echo "<b>Title</b>"; echo"</td>"; echo"<td width=\"80px\">"; echo"<p class=\"form2\">"; echo "<b>ID</b>"; echo"</td>"; echo"<td width=\"80px\">"; echo"<p class=\"form2\">"; echo "<b>Price</b>"; echo"</td>"; echo"</tr>"; echo"<tr>"; echo"<td width=\"80px\">"; echo"<p class=\"form2\">"; echo $row["title"]; echo"</td>"; echo"<td width=\"120px\">"; echo"<p class=\"form2\">"; echo $row["nameid"]; echo"</td>"; echo"<td width=\"120px\">"; echo"<p class=\"form2\">"; echo $row["price"]; echo"</td>"; echo"</tr>"; echo"<tr>"; echo"</tr>"; echo"</table>"; } mysql_close($con); ?> <br> <form action="chstarterprice.php" method="post"> <p class="form2">ID:<input name="id" type="text"> Amount:<input name="amount" type="text" /> <input name="Submit" type="submit" value="Change" /></p> </form> ACTION SCRIPT: <? ob_start(); ?> <?php include("connection.php"); $id = $_POST['id']; $amount = $_POST['amount']; $query = "update starters set price = '".$amount."' where id = '".$id."'"; if(mysql_query($query)){ header("location:change-prices.php");} else{ header("location:change-prices.php");} ?> <? ob_flush(); ?>
-
CSS Navigation help
Hey guys, I have a website which requires a stylish navigation. I have able to produce the navigation however I am having trouble assigning an alternative rollover colour to the third tier of my navigation bar, since I have not had much experience in multi-tiered navigation before. I also wish for when the user rolls over a topic the link that expands to the third tier must stay highlighted. If you could help me achieve this I would be ever so greatful. Here is my code. HTML <div id="navigation"> <div id="nav-container"> <div id="navbar"> <ul id="menu"> <li class="main2"><a href="" class="link">Home</a></li> <li class="main"><a href="" class="link">About</a> </li> <li class="main"><a href="" class="link">Insurance Services</a> <ul> <li><a href="">Business Products</a> <ul> <li><a href="#" title="retail shops" class="rollover">Retail & Shops</a></li> <li><a href="#" title="restaurant cafe" class="rollover">Restaurant & Cafes</a></li> <li><a href="#" title="takeaways" class="rollover">Takeaways</a></li> <li><a href="#" title="offices" class="rollover">Offices</a></li> </ul> </li> <li class="sub"><a href="">Liabilities</a> <ul> <li><a href="#" title="cleaning contractor">Cleaning Contractor</a></li> <li><a href="#" title="general contractor">General Contractor</a></li> <li><a href="#" title="tradesman">Tradesman</a></li> </ul> </li> <li class="sub"><a href="">Motor</a> <ul> <li><a href="#" title="Fleet">Fleet</a></li> <li><a href="#" title="Trade">Trade</a></li> <li><a href="#" title="Taxis">Taxis</a></li> </ul> </li> <li class="sub"><a href="">Commercial property</a> <ul> <li><a href="#" title="Property Owners">Property Owners</a></li> <li><a href="#" title="Places of Worship">Places of Worship</a></li> <li><a href="#" title="Corporate Buildings">Corporate Buildings</a></li> </ul> </li> </ul> </li> CSS /* Navigation Menu Styling */ #navbar { margin-left: 0px; margin-top: 25px; position: relative; z-index: 2; } #menu, #menu ul { font-family: Humanst521BTBoldItalic; font-size: 14px; margin-top: 0px; padding: 0; list-style: none; margin-left: 0px; } #menu li.main { display: block; position: relative; float: left; color: #878787; border-left: 1px solid #878787; } #menu li.main2 { display: block; position: relative; float: left; color: #878787; } #menu li ul { position:absolute; margin-top: 0px; margin-left:.5em; /* for IE */ display:none; } #menu ul li ul { margin-top: -28px; margin-left:187px; } /* ******************************************************************* */ /* SHOW SUBMENU 1 */ #menu li:hover ul, #menu li.over ul { display:block; } #menu li:hover ul ul, #menu li.over ul ul { display:none; } /* SHOW SUBMENU 2 */ #menu ul li:hover ul, #menu ul li.over ul { display:block; } /* ******************************************************************* */ /* STYLING UP THE LINKS */ #menu a { display: block; text-decoration: none; color: #878787; padding: 7px 28px 7px 28px; background: #FFF; margin-left: 0px; white-space: nowrap; } #menu a:hover { background-color:#FFF; color:#000; } #menu a:active { background-color:#FFF; color:#000; } #menu ul { border-top:1px solid #fff; } #menu ul a { display: block; text-decoration: none; color: #878787; padding: 6px 29px 4px 29px; background: #FFF; margin-left: -10px; white-space: nowrap; width: 130px; } #menu li:hover li a:hover { background: #E30613; color: #FFF;} #menu li a.rollover:hover { background-color: #CCC; } /* ******************************************************************* */ #menu { z-index:1; } #menu ul { z-index:2; } #menu ul ul { z-index:3; } /* ******************************************************************* */ /* Fix IE. Hide from IE Mac \*/ * html ul li { float: left; height: 1%; } * html ul li a { height: 1%; } /* End */ Attached is a screenshot of the website. Thanks again.
-
CSS float error in ie, fine in chrome
I have created a website that uses floats, for some reason the floated content gets cut off in ie whereas in chrome it displays as it should. If you refresh the browser you can just make out the flicker of the content that should display before it gets cut off. I dont know where I went wrong in the CSS but if you could help me correct this error, I would be greatly appreciated. I am coding the website on windows xp os. Below is the html code for the webpage: <!DOCTYPE html> <html> <head> <title>P Magic</title> <link rel="stylesheet" type="text/css" href="style.css"/> <script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> <!-- function validate_form ( ) { valid = true; if ( document.subscribe.sub.value == "" || document.subscribe.sub.value == "email address") { alert ( "Please fill in the 'Email Address' box." ); valid = false; } return valid; } </script> </head> <body id="home"> <div id="canvas"> <div id="wrapper-top"> <div id="navbar"> <div id="navcontain"> <a href="index.html"><img src="./images/nav-home.png" class="nav"></a> <a href="about.html"><img src="./images/nav-about.png" class="nav"></a> <a href="services.html"><img src="./images/nav-services-roll.png" class="nav"></a> <a href="gallery.html"><img src="./images/nav-gallery.png" class="nav"></a> <a href="contact.html"><img src="./images/nav-contact.png" class="nav"></a> <a href="#"><img src="./images/nav-test.png" class="nav"></a> </div> </div> <div id="sidebar"> <div id="social"> <a href="#"><img src="./images/follow.png" class="side"></a> <a href="https://twitter.com/#!/pmagicofficial" target="_blank"><img src="./images/twitter.png" class="social"></a> <a href="http://www.facebook.com/pmagicofficial" target="_blank"><img src="./images/facebook.png" class="social"></a> <a href="#"><img src="./images/linkedin.png" class="social"></a> <a href="http://www.youtube.com/user/PmagicOfficial" target="_blank"><img src="./images/youtube.png" class="social"></a> </div> <div id="subscribe"> <form name="subscribe" action="email.php" method="post" onsubmit="return validate_form ();"><input type="text" size="20" name="sub" value="email address" class="email"><input type="image" src="./images/submit.png" class="submit"></form> </div> <div id="telno"> <a href="#"><img src="./images/callme.png" class="side"></a> <img src="./images/telno.png" class="telno"> </div> </div> </div> <div id="wrapper-middle"> <div id="suits"></div> <div id="logo"></div> <div id="maincont"> <div id="top-cont"></div> <div id="about-cont"> <div id="para3"> <h2>My skill, mixed with my energetic personality can be put into any situation, for example:</h2><br> <p><img src="./images/party.png" width="80px" height="80px";><img src="./images/wedding.png" width="105px" height="80px" class="service"><img src="./images/chair.png" width="85px" height="80px" class="service"><img src="./images/chair.png" width="85px" height="80px" class="service2"><br><br> <span class="list">Drinks Parties</span><span class="list2">Weddings</span><span class="list2">Corporate Events</span><span class="list3">Restaurant Tables</span> <br><br><br><p><img src="./images/statement.png"></p> </div> </div> <div id="bottom-cont"></div> </div> </div> <div id="wrapper-bottom"> </div> </div> </div> </body> </html> Below is the CSS stylesheet for the webpage: body { margin: 0; padding: 0; background-color: FFF; } /*Content below is for header section*/ #canvas{ width: 1024px; height: 628px; margin-left: auto; margin-right: auto; } #wrapper-top { width: 1024px; height: 98px; margin-top: 0px; background-image: url('./images/backg-top.jpg'); background-repeat: no-repeat; } #navbar { float: left; background-image: url('./images/nav.png'); background-repeat: no-repeat; width: 615px; height: 45px; margin-top: 0px; margin-left: 9%; } #navcontain { width: auto; height: 40px; margin-top: 0px; margin-left: auto; margin-right: auto; } img.nav { margin-top: 20px; margin-left: 30px; display: inline; border: 0; } img.side { margin-top: 0px; margin-left: 0px; display: inline; border: 0; } img.social { margin-top: 4px; margin-left: 2px; display: inline; border: 0; } img.telno { margin-top: 0px; margin-left: 0px; display: inline; border: 0; } img.pic { margin-top: 0px; margin-left: 30px; display: inline; border: 0; float: left; } #para { float: right; background-color: #9D9D9C; width: 340px; height: auto; margin-top: 0px; margin-right: 20px; } #para3 { float: right; background-color: #9D9D9C; width: 460px; height: auto; margin-top: 0px; margin-right: 70px; } span.list { font: 14px arial,sans-serif; color: #FFF; margin-left: 0px; } span.list2 { font: 14px arial,sans-serif; color: #FFF; margin-left: 25px; } span.list3 { font: 14px arial,sans-serif; color: #FFF; margin-left: 25px; } img.service { margin-left: 15px; } img.service2 { margin-left: 55px; } img.button{ width: 60px; height: 19px; } h2 { margin-top: 0px; } form.form{ font: 14px times new roman,sans-serif; } textarea { font: 13px arial,sans-serif; } p { padding: 0; margin: 0; font: 16px arial,sans-serif; } #sidebar { float: right; width: 230px; height: auto; margin-top: 0px; margin-right: 0px; } #social { width: 230px; height: 33px; border: 0px; } #subscribe { width: 230px; height: 27px; margin-top: 10px; padding: 0px; } #telno { width: 230px; height: 24px; margin-top: 0px; padding: 0px; } input.email { background-image: url('./images/subscribe.png'); background-repeat: no-repeat; border: 1px solid #CCC; float: left; font: 11px arial,sans-serif; font-weight: bold; color: #333; } input.submit { float: right; margin-top: 1px; margin-right: 35px; padding: 0px; } #wrapper-middle{ background-color: #000; width: 1024px; height: 231px; margin-top: 0px; margin-left: 0; } #suits { background-image: url('./images/shapes.jpg'); background-repeat: no-repeat; float: left; width: 38px; height: 210px; margin-left: 20px; margin-top: 10px; } #logo { background-image: url('./images/logo.png'); background-repeat: no-repeat; float: left; width: 229px; height: 156px; margin-top: 35px; margin-left: 65px; } #bannerpic1 { background-image: url('./images/pic1.jpg'); background-repeat: no-repeat; float: left; width: 159px; height: 186px; margin-top: 25px; margin-left: 60px; } #bannerpic2 { background-image: url('./images/pic2.jpg'); background-repeat: no-repeat; float: left; width: 159px; height: 191px; margin-top: 13px; margin-left: 30px; } #bannerpic3 { background-image: url('./images/pic3.jpg'); background-repeat: no-repeat; float: left; width: 159px; height: 186px; margin-top: 18px; margin-left: 30px; padding: 0; } #wrapper-bottom { width: 1024px; height: 300px; margin-top: 0px; margin-left: 0; background-image: url('./images/backg-bottom.jpg'); background-repeat: no-repeat; } #content { float: right; width: 540px; height: 200px; margin-top: 100px; margin-right: 30px; } #maincont { float: left; width: 555px; height: 530px; margin-top: 25px; margin-left: 78px; } #top-cont{ background-image: url('./images/cont-top.png'); background-repeat: no-repeat; float: left; width: 555px; height: 30px; margin-top: 0px; } #switcher-panel{ float: left; width: 500px; height: 300px; margin-top: 0px; margin-left: 30px; } .switcher-content { display: none; } a.switcher{ cursor:pointer; } img.thumbs { margin-right: 20px; width: 120px; height: 120px; } #top-cont2{ float: left; width: 644px; height: 160px; margin-top: 20px; margin-left: 30px; overflow: auto; } #top-cont3{ float: left; width: 444px; height: auto; margin-top: 10px; margin-left: 30px; } #main-cont { background-color: #9D9D9C; float: left; width: 555px; height: 385px; margin-top: 0px; } #about-cont { background-color: #9D9D9C; float: left; width: 555px; height: auto; margin-top: 0px; } #bottom-cont{ background-image: url('./images/cont-bottom.png'); background-repeat: no-repeat; float: left; width: 555px; height: 30px; margin-top: 0px; } img.big { width: 300px; height: 300px; }