generic cialis
Home » Archive

Articles in the CSS Category

CSS »

[19 Jun 2009 | 2 Comments | ]

Problem
I’ve just had to convert a photoshop visual to a wordpress template. The designer wanted a bulleted list where the bullets themselves were very close to the list items, and were small dashes. Cross browser support for list item and bullet styling is ropey at best, and to make things perfect I’d have to resort to browser specific styles.
Solution
The solution I think I’ll be using for the rest of my ‘web’ career will be this. JUST FORGET THE BULLET ITEM, and use positioned background images instead.
In the stylesheet, add styles …

CSS »

[9 Dec 2008 | No Comment | ]

Problem
If you need to center a div (or any another block element) over the rest of the content in a page, and you need it to be cross-browser and valid (CSS and XHTML)…
Solution
Try the following CSS in your stylesheet or page head:
#cdiv {
  position:absolute; /* important. */
  left:50%; /*important if you want it absolutely centred in window. */Â
  margin-left:-50px; /* importnant. must be half the width. */
  width:100px; /* set to your requirements, but remember left margin setting. */
  height:100px; /* not neccessary if the element needs to grow with content. */
  border:1px solid #ABF; /* not …