Record or Upload Your Videos FREE
Powered by MaxBlogPress  


Archive for February 18th, 2008

No Border Rule

I have seen a LOT of people purporting that they know how to create websites with CSS. But, when I see style rules such as: img{border:none;}, I wonder where they learned CSS.

The Standards Compliant Rule for displaying NO BORDER on images

If you do NOT want a border on an element such as an image, the rule would be as follows:
img {border-style:none;}

Why “border-style” instead of “border”? Border is the short-hand for naming all border rules in one line – which consists of border-width, border-style, border-color – ie: border:1px solid #000;.

Another CSS Tip
Claire Poulton

No Comments »

Organized HTML CSS Code


 Powered by Max Banner Ads 

Learn to write neat, easy to read Style Rules and HTML Code. You will save yourself a LOT of work and frustration by always doing things the same way every time and organize your Style Sheets. This is how I organize mine so if I need to edit or find some error, it’s way easier to work with:
Style Sheets:

  • Start your Style Sheet with all the regular HTML tags such as html, body, p, h1 – h6, img, and other often used html tags
  • “Classes” come next such as colors, text-alignment, and text formatting
  • “ID’s” for layout follow at the end

By organizing your Style Sheets in this order ALL THE TIME, you create a pattern that you can follow for every website you design. Continue Reading »

No Comments »

Links to Match your Site

This is HOW I got started using CSS to design my websites.

My very first website was green, red and white. I had hyperlinks on the pages that were the “default” bright blue. Being an aesthetic kind of person, that bright blue color looked gawd-awful. While I was surfing around the Internet I found some pages that had links on them, but, guess what? They were NOT bright blue. I had to find out how they did that.

I “viewed the source” and discovered some weird “style” stuff in the <head> of the web page. So, Continue Reading »

No Comments »