| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #3 (permalink) |
| New Member Join Date: May 2005 Location: Bistrita RO
Posts: 18
![]() | By using CSS you can separate the content from the formatting, making the change of appereance much easier. Let me give you an example: If you were to have ten paragraphs formatted to Verdana, size 2, your code would be: Code: <p><font color="#CC0000" size="2" face="Verdana">Paragraph one</font></p> <p><font color="#CC0000" size="2" face="Verdana">Paragraph two</font></p> ... <p><font color="#CC0000" size="2" face="Verdana">Paragraph twenty</font></p> ????: NamePros.com http://www.namepros.com/programming/92265-css.html With CSS, you define a class: Code: .text {
font: 10px Verdana;
color: #CC0000;
} Code: <p class="text">Paragraph one</p> <p class="text">Paragraph two</p> .. <p class="text">Paragraph twenty</p> Code: .text {
font: 20px "Times New Roman";
color:#0000CC;
} The future of web design is in using CSS-based layouts instead of tables. And many other reasons, which i can't remember right now.
Last edited by danburzo; 05-23-2005 at 08:04 AM.
|
| |
| | #4 (permalink) |
| NamePros Member Join Date: Feb 2005
Posts: 82
![]() | CSS is also a good solution to avoid html tables issues. Find more here: http://www.hotdesign.com/seybold/ |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Help Needed | Chorei | Web Design Discussion | 0 | 04-12-2005 10:28 AM |
| css problems with ie, and a couple other things | thecatat | Programming | 0 | 08-23-2004 05:16 PM |
| CSS: what's the use of it? | lucesei | Programming | 13 | 04-12-2004 07:21 AM |
| CSS positioning :( | gwx | Programming | 6 | 12-30-2003 12:31 PM |
| pb with background (css) | virgile00 | Graphic Design / Flash | 1 | 11-06-2003 08:41 AM |