Archive for the tag 'css'

Remember to Love / Hate Links

Posted by Sadish

Ever wondered how to define styles for Hyperlinks ?
Well. There are four different selectors for a hyperlink.
You would normally see this at the top of the stylesheet.
a:link {text-decoration:none;color:#ff0000}
a:visited {text-decoration:none;color:#0000ff;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
The first line defines that normal unvisited links will have ‘no underline’, and will look ‘red’ in color.
The second line says when a link is […]

Read Full Post »

Comments Off

Font sizes and Accessibility

Posted by Sadish

Lets take a closer look at the font-size property in CSS.
You might have seen this following piece of code in some theme’s style.css file.
#content h2 { font-size:1.4em;}
or this
#content h2 { font-size:14px;}
or this
#content h2 { font-size:10pt;}
What is the difference between all of these ? which one is better ?
In reality, […]

Read Full Post »

Comments Off

How to properly hide the title of your blog?

Posted by Sadish

This is one of the most common customizations that people want to do in their wordpress blog.
They want to hide their site’s title from displaying at their header. It is most probably because their header image already has it as part of the image itself.
Lets take a look at the most common approaches people take, […]

Read Full Post »

Comments Off

Sidebar drops down

Posted by Sadish

Lets take a look at one of the most common problems with the wordpress sites.

The sidebar does not stay on the side, and it falls down to be below the content area.

Read Full Post »

Comments Off