Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Thursday, August 28, 2008

Colors of the Day 1


 #FF8D50




 #7AB8DD




 #715995




 #7fdf55

5 Reasons to Use CSS based Layouts

1. Reduced Bandwidth costs due to less data exchange
2. Higher Search Engine Ranking beacuse of cleaner code
3. Faster Download Speed due to less size
4. Increased Reach due to compatibility with many gadgets
5. Easier to Maintain the HTML

Wednesday, June 04, 2008

CSS Hacks: DIV Height Problem and Solution

If you set height in css for a div and check it in IE and Firefox you will get two different heights.

Empty divs in IE have a minimum height, more or less equal to the current line-height.

The way to solve this is:

1) Put a comment inside the div: <div style="height: 10px;"><!-- --></div>
2) Put a inside the div and add this to its style: font-size:1px; line-height:0.

Thursday, December 27, 2007

Difference between Visibility & Display in CSS

CSS has two properties for hiding the contents. Those are

1. Visibility
values: inherit visible hidden ;
2. Display
values: block none inline list-item ;

Both Visibility and Hidden are used to hide the information, but when you use Visibility to hide, browser still takes up the space in layout and displays blank space.

Whereas if you use Display to hide the information, browser will removes the element completely from the document and it doesn't show any blank space in that location, even though the HTMl for it is still in the source.


Use : Using these properties you can create effects of collapsible panel.