extrovertive Posted August 9, 2006 Share Posted August 9, 2006 If you herehttp://tutor.populateme.com/2b/Under the navigation bar and betwee the "Resources" section is one big table. It holds two columns and two rows. Top-left = Find a tutor, top-right = Flash, bottom-left = newsletter, bottom-right = intro text.Here's the code for the table with content removed:[code]/////content styletable.contenthome{ background-color: #FFFFFF; width: 730px; margin-left:auto; margin-right:auto; border-right: 1px solid #003399; border-left: 1px solid #003399; }///////<table cellpadding="5" cellspacing="10" class="contenthome"> <tr valign="top"> <td width="411" valign="top"> <!-- Find A Tutor --></td> <td width="400" class="vertical"><!-- Flash --></td></tr><tr valign="top"> <td> <!-- Newsletter --> </td><td><!-- Intro text --></td> </tr></table>[/code]I know basic CSS but in terms of making layouts such as the way I would use tables to make number columns and rows, I am bit confused. Quote Link to comment https://forums.phpfreaks.com/topic/16993-turning-2-rowscolumns-into-css/ Share on other sites More sharing options...
cmgmyr Posted August 9, 2006 Share Posted August 9, 2006 Check this link out: http://www.neuroticweb.com/recursos/2-columns-layout/index.phpthere is also a 3 column here : http://www.neuroticweb.com/recursos/3-columns-layout/index.phpall you have to do is add <div style="clear:both;"> </div> after your second "column" then this will be your second row.Hope this helps,-Chris Quote Link to comment https://forums.phpfreaks.com/topic/16993-turning-2-rowscolumns-into-css/#findComment-71745 Share on other sites More sharing options...
obsidian Posted August 9, 2006 Share Posted August 9, 2006 [quote author=cmgmyr link=topic=103533.msg412391#msg412391 date=1155126592]Check this link out: http://www.neuroticweb.com/recursos/2-columns-layout/index.phpthere is also a 3 column here : http://www.neuroticweb.com/recursos/3-columns-layout/index.phpall you have to do is add <div style="clear:both;"> </div> after your second "column" then this will be your second row.Hope this helps,-Chris[/quote]very good point, but i would encourage you to use this idea in leu of the clear: both option: in your top div that holds your first "row," simply apply the [url=http://www.positioniseverything.net/easyclearing]clearfix class[/url] from Position is Everything. this way, your top row clears everything below it by itself, and you can also view it properly in all browsers. other types of clearing can sometimes cause issues in cross-browser situations.good luck Quote Link to comment https://forums.phpfreaks.com/topic/16993-turning-2-rowscolumns-into-css/#findComment-71749 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.