| | |
Three column CSS position
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 6
Reputation:
Solved Threads: 0
I need another set of eyes to look this over. I can't seem to get the three columns to work properly with the product listing at the bottom of the page. Here is the CSS;
Here is the HTML:
Any help would be very much appreciated.
HTML and CSS Syntax (Toggle Plain Text)
#productbox{ width:666px; background-image:url(../slices/item-bkg.png); background-repeat:no-repeat; height:173px; } .productimage { float: left; width: 100px; margin-left: 0px; padding:20px; } .producttext { float: left; width:250; margin: 0 100px 0 100px; font:Arial, Helvetica, sans-serif; font-size:12px; } .productprice{ float: left; width: 100px; margin-left: -350px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#01204b; }
Here is the HTML:
HTML and CSS Syntax (Toggle Plain Text)
<div id="productbox"> <div class="productimage"><img src="images/product-home-internet.png"></div> <div class="producttext"><span class="orangetitlelg">Fast Home Internet</span><br><br> Fast Home Internet gives you more speed. This plan is ideal for online shopping, sending photos or even downloading music. You'll connect at download speeds of 3Mbps and upload speeds of 500Kbps**. Usage is unlimited.<br><br> $35 activation fee (waived with 2 year sign up). </div> <div class="productprice"><span class="productnumber">$30</span>/month<br> <a href="contactus.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','slices/learnmore-on.png',1)"><img src="slices/learnmore-off.png" name="Image6" width="121" height="50" border="0"></a></div> </div>
Any help would be very much appreciated.
•
•
Join Date: May 2009
Posts: 15
Reputation:
Solved Threads: 0
1
#2 Oct 19th, 2009
I'm not sure if this is how you would want it to be.
As for the css border selector, I just like to put a border around my divs to show where they exactly are. You can take them away if you wish to.
html Syntax (Toggle Plain Text)
<div id="container"> <div id="main"> <div id="productimage"> <img src="images/product-home-internet.png"> </div> <div id="producttext"> <span class="orangetitlelg">Fast Home Internet</span><br \><br \> Fast Home Internet gives you more speed. This plan is ideal for online shopping, sending photos or even downloading music. You'll connect at download speeds of 3Mbps and upload speeds of 500Kbps**. Usage is unlimited.<br \><br \>$35 activation fee (waived with 2 year sign up). </div> <div id="productprice"> <span class="productnumber">$30</span>/month<br \><a href="contactus.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','slices/learnmore-on.png',1)"><img src="slices/learnmore-off.png" name="Image6" width="121" height="50" border="0"></a> </div> <div class="clear"></div> </div><!-- #main end --> </div><!-- #container end -->
css Syntax (Toggle Plain Text)
#container { width:550px; margin:0 auto; border: 1px solid #000; padding: 10px; } #main { width:auto; display:block; padding:10px; border: 1px solid #000; } #productimage { width:100px; margin-right:25px; float:left; border: 1px solid #000; } #producttext { width:250px; margin-right:25px; float:left; border: 1px solid #000; } #productprice { width:100px; float:left; border: 1px solid #000; } .clear { clear:both; }
As for the css border selector, I just like to put a border around my divs to show where they exactly are. You can take them away if you wish to.
![]() |
Similar Threads
- Code Snippet: Two column CSS layout (HTML and CSS)
- Problems after converting 2 column layout to 3 column layout (HTML and CSS)
- css position problems (HTML and CSS)
- The most famous CSS web sites galleries in the world (HTML and CSS)
- CSS Allignment Help (HTML and CSS)
- CSS position problem (HTML and CSS)
- CSS positioning problems (HTML and CSS)
- Cross browser CSS (Site Layout and Usability)
Other Threads in the HTML and CSS Forum
- Previous Thread: flash calendar
- Next Thread: teach me
| Thread Tools | Search this Thread |
@param acid2 actionlistener ajax asp automation background beta body browser bug c++ cart cgi checkbox code css design developer development doctype dom dreamweaver editor element explorer firefox form format functiontesting google gridview gui guidancer head hover html ide ie7 ie8 iframe include internet java javadoc javascript jlabel keyword layout microsoft mysql navigationbars news opacity paging parameter perl photoshop php positioning post problem security shopping singleton source static studio tag test testautomation ui unicode url vb visual visualization w3c web website wysiwyg xhtml xml






