August 29, 2010
While adding a bunch of posts to my web site, I needed to add several tables. Immediately, the idea of using CSS came to mind.
However, because of the diversity of information being presented, I was not able to develop a "generalized" one-size-fits-all CSS-type solution. Basically, In my "custom.css" file I would have to add a CSS style for each of my tables. Unfortunately, my quick efforts at using what little HTML and CSS I already knew were unsuccessful.
I went to http://www.w3schools.com and reviewed the HTML and CSS information. On the "CSS How To" page, three methods of inserting CSS are listed in order of preference:
- External style sheet (this is your custom.css file)
- Internal style sheets (this is CSS stuff you put at the the top of your POST or PAGE and it is effective for the rest of the POST or PAGE)
- Inline style (something like <p style="margin-left: 20px;">This is a paragraph</p>)
#1 is the PREFERRED way of styling your website because you are able to separate the content from how it looks.
#2 IS NOT AVAILABLE IN WORDPRESS!!! Watch-out! I added it to my POST, clicked "Update" and refreshed my browser! HOORAY it worked - ONCE!
But, then I went back to edit the POST and all my Internal style stuff was in a comment!
So what I learned is: put as much as you can in your "custom.css" otherwise you are going to have to use INLINE STYLE!
November 8, 2009
August 29, 2010
Most Users Ever Online: 228
Currently Browsing this Page:
Keith W Jones: 1441
Brian Tozer: 1004
Heidi Hafner: 509
John Cunningham: 423
Reece Morrel: 353
Tijs de Jong
Guest Posters: 6
Administrators: Rick Anderson, Rick Anderson
Moderators: Pierre Cote, Laura Nugent