Category Archives: General

Making use of content: in a footer navigation bar

<!DOCTYPE html> <html lang=”en” dir=”ltr”> <head> <meta charset=”utf-8″ /> <meta http-equiv=”Content-Type” content=”text/html;charset=utf-8″ > <title>CSS : Making use of content: in a footer navigation bar</title> <style type=”text/css”> #footer-nav ul { list-style-type:none; } #footer-nav ul li { float:left; padding:0 5px; } #footer-nav … Continue reading

Category : General . 1 Comment

Centering floating DIVs

This post shows you how to put floating DIVs aligned to the center of the parent container whose width not set. The CSS makes the parent container act like a table and the child DIVs as cells <!DOCTYPE html> <html … Continue reading

Category : General . Tagged : , . 1 Comment

FireFox Specific CSS

Though the chances of wanting this is pretty slim, but if you want to target a set of CSS attributes just for FireFox instead of using JavaScript to alter the styles, its possible.Though most -moz- properties get deprecated & later … Continue reading

Category : General . Tagged : . 0 Comments

All Star Attributes for HTML5 elements in IE

It is very common to set margin:0 and padding:0 as default to all HTML elements via the star hack. * { margin:0; padding:0; } And we get so used to explicitly setting margins and paddings to elements that require them, … Continue reading

Category : General . Tagged : , , , . 1 Comment

Centering Lists

One of the most common techniques for creating a menu or some sort of a navigational bar is by using a list. A list is well-structured, uses fewer elements to parse than a table (buzzword tableless) and can always fall … Continue reading

Category : General . Tagged : , , , , . 0 Comments