pcman Posted December 29, 2008 Share Posted December 29, 2008 i want to design just with css where can i learn it? Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/ Share on other sites More sharing options...
Mchl Posted December 29, 2008 Share Posted December 29, 2008 On internet. At home. At school. Anywhere. At the sticky in this forum look you should. Useful links a lot there are. Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-725432 Share on other sites More sharing options...
ILMV Posted December 30, 2008 Share Posted December 30, 2008 On internet. At home. At school. Anywhere. At the sticky in this forum look you should. Useful links a lot there are. *bad pun* But not in church, they love their rows... */bad pun* Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-726116 Share on other sites More sharing options...
chriscloyd Posted December 30, 2008 Share Posted December 30, 2008 <divs>'s Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-726441 Share on other sites More sharing options...
Gighalen Posted January 6, 2009 Share Posted January 6, 2009 On internet. At home. At school. Anywhere. At the sticky in this forum look you should. Useful links a lot there are. *bad pun* But not in church, they love their rows... */bad pun* LOL good pun. www.w3schools.com Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-731113 Share on other sites More sharing options...
ChaosKnight Posted January 11, 2009 Share Posted January 11, 2009 Div's, but you have to design correctly with the css or your div's will end up where you didn't want them to be... Personally I prefer to design with tables seeing that it's more stable, but when I revamp my website I'm going over to div's Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-734758 Share on other sites More sharing options...
killah Posted January 11, 2009 Share Posted January 11, 2009 <div>'s are cross browser while <table>'s are not. So i would recommend <div>'s here. Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-734828 Share on other sites More sharing options...
TheFilmGod Posted January 11, 2009 Share Posted January 11, 2009 I recommend divs + tables. Tables should only be used for tabular data. You should strive to design SEMANTIC websites - use as few divs as possible to achieve the same design. A typically beginner will create div soup. For example: <div id="main"> <div class="heading">I am a heading in a div.</div> <div class="text">Text goes here... blah blah</div> <div class="image"><img src="../..images/something.png" width="50" height="50" alt="ALT text" /></div> </div> This is div soup. It isn't any better than tables! You should do this instead: <div id="main"> <h1>Heading Goes here!</h1> <p class="text">Text goes here... blah blah</p> <img src="../..images/something.png" width="50" height="50" alt="ALT text" /> </div> Remember, CSS is powerful enough that you can literally format these tags too! Actually, this technique will reduce your code since you don't have to specifiy classes, if you only use a tag once within a div parent. Finally, NEVER enclose text in only a div. This is terrible semantics. Always enclose it in a block level text tag. <li>, <p>, <h1>, etc. Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-734859 Share on other sites More sharing options...
dbrimlow Posted January 16, 2009 Share Posted January 16, 2009 TheFilmGod is right. AND, once you get rid of all the code bloat (table tags, too many div tags, etc) you will almost immediately notice better natural search engine ranking. SEO is all about making it easy for the bot to spider your pages. Semantic content shows the bot what is important. Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-738091 Share on other sites More sharing options...
eleven0 Posted January 16, 2009 Share Posted January 16, 2009 There are many sites that you can learn CSS from. If you're a starter, You should take a look at W3 CSS school. Or one of my favorites cssbasics.com. Once you get going, use tools like stumbleupon to find different css tricks and tips to practice your skill. Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-738584 Share on other sites More sharing options...
phparray Posted January 16, 2009 Share Posted January 16, 2009 going table less is easier than you may think. Study the use of float and clear. .floating { float:left; margin:5px; border:1px solid black; background-color:red; } .push { clear:left; } <div class="floating"></div> <div class="floating"></div> <div class="floating"></div> <div class="push"></div> This should output 3 red boxes with a black border all on one line separated by 5px. Without the float:left; they would appear from top to bottom instead of left to right. float:right would make them display right to left instead of left to right. Use clear to stop floating block objects. Quote Link to comment https://forums.phpfreaks.com/topic/138746-how-can-i-design-without-tables/#findComment-738607 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.