Tagged with css

CSS Tools that’ll make life easy!

Sometimes, CSS can be such a complicated thing, making sure it works on different browsers, fixing that darn IE bug, and just generally making sure it all works properly. This can be especially annoying if you are a newbie to CSS. But give it a chance, you will love it!
Below are a few tools I came across that will be easier on you and your time!

1. CSS Template Generator – with Source Code

2. YAML Builder

3. CSS Rounded Box Generator

4. WordPress Theme Generator

5. CSS Tidy

6. CSS Compressor- Use this utility to compress your CSS to increase loading speed and save on bandwidth as well.

7. Firebug- If you aren’t using this, now would be a good time to start :)

8. Aardvark- This is by far one of my faves from Firefox, because it enables you to fix template problems by combing through the layout.

9. CSS Layouts

10. Collaborative Javascript Debugging

There’s more where this came from! Check out 60 CSS Tools.

Tagged , , ,

YUI Grids CSS, makes web easier?

I was assigned to redo a certain section of a certain site today (from scratch) and so I proceeded to look up with is the best and easiest way to get this done in little time. So I used Stumbleupon and came across this…YUI Grids CSS

For those of you not aware of what this is, it makes all layouts look the same in different browsers. It fixes the margin issues between browsers and it also makes the fonts look the same (gasp!), making things look consistent.

To get a feel for it, I downloaded a free layout online that was built on these guidelines, so I could examine the layout more closely. When I first looked at the CSS files, I was like…”what the!?!?”. It made so much more sense (unlike me who thought I could just ‘figure it out’ and wasted half a day, scratching my head..eeeep). I suggest you read about YUI here before you venture using it. I like how theres code for various screen sizes etc. If you have time watch the 42 minute video on it as well. Play around with the YUI Grids Builder.

Some pretty neat stuff happening here, esp for people with little to no experience with CSS. The verdict about this? I am not fully sold on it yet, it all sounds great and all, but it involves so many numbers and its all in “em”s as opposed to pixels. I think I might try it out on one site and go from there. It certainly has a lot to offer. Also check out the YUI blog. It has a bunch of cool stuff you can do with YUI. Yay Yahooo!

I would love to hear if any of you use YUI (or not) and why? What are your experiences? Please share.:)

Tagged , , ,

IE 6′s Double-Margin Bug

There’s some valuable information on ther web about CSS and the various bugs going around with the different browsers. For me this was always a big issue. So I would turn to Pookey and he would fix it. As easy as it was, I couldn’t help feeling I had to figure this out for myself!

For those who are unfamiliar with the “Double-Margin Bug”, if you float an element and then procede to add margins in the same direction as the float, Internet Explorer 6 will double the value. For example, A left margin of “10px” becomes “20px” in IE6. Well how do you fix this?

Why not try the underscore hack?
The Underscore Hack is a useful looking CSS hack. IE/Win ignores an underscore (_) at the beginning of any CSS property name, interpreting the declaration as if the underscore wasn’t there. Other browsers do not recognise the property and ignore the declaration.

#sidebar {
position: fixed;
_position: absolute;
}

Modern browsers will cycle through these properties. When they come to the underscore, they’ll skip the style entirely. On the flip side, IE6 will ignore the underscore and implement the new margins.

In addition to this there are other ways to avoid this. Such as…

Change The Display To Inline
The easiest solution, change the display property of your element.

#floatElement {
display: inline;
float: left;
margin-left: 100px;
}

Use Conditional Comments
Use conditional Comments to target different web browsers.

!–[if lt IE 6]>
<link rel=”stylesheet” type=”text/css” href=”ie6.css” />
<![endif]–>

In layman’s terms, this code is saying, “If a visitor to your page is using Internet Explorer 6 or lower, import a stylesheet called “ie6.css”. As a result, modern browsers will ignore this statement. IE 6 and below, on the other hand, will implement the file. Now, in our ie6.css file, we’ll need to add some override styling.

#floatElement {
float: left;
margin-left: 50px;
}

Since we know that IE 6 will double the margins on floated elements, if we reduce the value of the margin by 50%, it will fix our document. This method is particularly appropriate when you have many styles that are targeting IE6 directly. It’s important to contain all of your “hacks” in a centralized location.

Tips, courtesy of Net Tuts and The Underscore Hack

Tagged , , , , ,

BlueprintCSS by Google

Google has come up with a prettty handy tool…

Blueprint is a CSS framework, which aims to cut down on your CSS development time. It gives you a solid CSS foundation to build your project on top of, with an easy-to-use grid, sensible typography, and even a stylesheet for printing.

Features:

To read more click here

Tagged , , ,
Follow

Get every new post delivered to your Inbox.