Popular Post I: Free PHP Date Display Script
Popular Post II: Turn Your Surfing Into Dollars


Quick and Lazy CSS

2 May 2007 (20:55) | Web Tips

Need to do something with your display just once? Don’t want to add it to your CSS file?

Use in-line CSS instead.

Here’s a code example:

<p style="font-size: 150%; color:#cc0000;">Paragraph text goes here</p>

This makes the text 150% of regular size and red, in this example code as shown above.

Lots of CSS rules can be used “inline” instead of within an external style sheet or even a style sheet in the header of a web page.

Generally, an external file is best, so that you apply the “rules” consistently across your whole site, not just either on one page or within the HTML code itself. But it does exist as an option!

Link To This Page
If you found this page useful, consider linking to it.
Simply copy and paste the code below into your web site (Ctrl+C to copy)
It will look like this: Quick and Lazy CSS

Write a comment