| | |
CSS - 3 Column Layout Problem...
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jun 2009
Posts: 2
Reputation:
Solved Threads: 0
I was kinda "given" the task of taking over a website which is something i have not done in a while. I have never gotten into CSS beyond styles for text before so i am doing this by trial and error. Anyways, I have a site designed and online. However I am now wanting to convert it to a CSS layout and all content will be dynamic. Anyways, on the main page, I need a section with 3 columns. The first two appear fine, the third (right column) starts a lot lower vertically than it should. What am I doing wrong?
CSS Sheet:
Asp:
CSS Sheet:
HTML and CSS Syntax (Toggle Plain Text)
* { padding: 0; margin: 0; } body { font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color:#432d20; } #wrapper { margin: 0 0; width: 900px; padding: 0px; } #index_content { background-color : #8b5733; border: 0px solid #ccc; margin: 0px 0px 0px 47px; padding: 0px; height: 400px; width: 825px; float: left; } #main_nav { color: #333; width: 900px; float: left; padding: 0px; border: 0px; margin: 0px 0px 0px 0px; height: 92px; background-image:url(images/main_menu.jpg); } } #flash { width: 900px; float: left; padding: 0px; border: 0px; height: 291px; margin: 0px 0px 0px 0px; } } #listen_online { width: 900px; float: left; height: 49px; background-image:url(images/listen_bg.gif); } #leftcolumn { padding: 0px; height: 400px; width: 326px; float: left; } #centercolumn { height: 400px; width: 256px; display: inline; } #rightcolumn { border: 3px solid #fff; margin: 0px 0px 0px 0px; padding: 0px; height: 400px; width: 200px; display: inline; } #footer { width: 850px; clear: both; border: 0px solid #ccc; margin: 0px 0px 0px 50px; padding: 0px; }
Asp:
HTML and CSS Syntax (Toggle Plain Text)
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="styles.css" /> <link rel="stylesheet" type="text/css" href="font.css" /> </head> <body> <!-- Wrapper --> <div id="wrapper"> <!-- MAIN MENU --> <div id="main_nav"> <!--#include file="main_nav.html"--> </div> <div id="flash"> <!-- MAIN FLASH MOVIE--> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="900" height="291"> <param name="movie" value="flash files/main.swf"> <param name="quality" value="high"> <param name="wmode" value="opaque"> <embed src="flash files/main.swf" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="291"></embed> </object> </div> <!-- END MAIN MENU / FLASH --> <div id="listen_online"> <table width="508" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="210" align="right" class="listenonline">Latest Message:<br> <span class="listenonline_sub">Speaker:</span></td> <td width="187" class="listenonline">"Taste The Grace of Silence"<br> <span class="listenonline_sub">Pastor Brent </span></td> <td width="111" class="listenonline"><a href="listenonline.asp"><img src="images/playbutton.jpg" width="100" height="32" border="0"></a></td> </tr> </table> </div> <div id="index_content"> <!-- LEFT COLUMN --> <div id="leftcolumn"> <img src="images/kingdomassignment.gif" alt="" width="326" height="129" /> <img src="images/freedomfest.jpg" alt="" width="326" height="129" /> <img src="images/currentseries.gif" alt="" width="326" height="129" /> </div> <!-- CENTER COLUMN --> <div id="centercolumn" class="servicetimes"> <img src="images/mediaspotlight.jpg" alt="" width="234" height="235" /><br /> <strong>Service Times:</strong><br> Saturdays 6:00pm<br> Sundays 9:00 & 10:45 am<br /> <a href="http://maps.google.com/maps?hl=en&um=1&ie=UTF-8&cid=0,0,16336706596796542677&fb=1&split=1&gl=us&dq=1126+wagner+dr.+sevierville+tennessee&daddr=1126+Wagner+Dr,+Sevierville,+TN+37862&geocode=5523148836306267293,35.861450,-83.530430&ei=dzTUSeWwHtCPmAeu3oztDg&sa=X&oi=local_result&resnum=1&ct=directions-to"target="_blank"><img src="images/map.jpg" width="225" height="79" border="0"></a> </div> <!-- RIGHT COLUMN--> <div id="rightcolumn">RIGHT COLUMN</div> </div> <!-- FOOTER --> <div id="footer"> <!--#include file="footer.html"--> </div> </div> <!-- End Wrapper --> </body> </html>
•
•
Join Date: Jun 2009
Posts: 2
Reputation:
Solved Threads: 0
well that seemed to improve the situation some... but instead of the third column being located to the right, it is located under the center column... i may revist the way this is written... I am still learning (in a hurry) lol... I love learning new things but, this is one of those where i need a solution and learn why it works later... lol.
![]() |
Similar Threads
- Problems after converting 2 column layout to 3 column layout (HTML and CSS)
- Problem in simple 3 column layout (HTML and CSS)
- How to realize 3 column layout using blocks! (HTML and CSS)
- 2 Column Layout, width: Left Fixed, Right/Content Fluid question (HTML and CSS)
- Problem with 2 column layout (HTML and CSS)
- Table/Column Layout for multiple pricing (MySQL)
- Firefox floating iffy on width. (HTML and CSS)
- Why is CSS such a mess? (HTML and CSS)
- Trying to use not tables, only CSS, but can I? (HTML and CSS)
- Layout in CSS (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Alignment of floated elements
- Next Thread: Side Scrolling Photo Gallery?
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





