Jump to content

Recommended Posts

Posted (edited)

A long time ago, i read that you can for instance type this in css:

><hr style="color: #fff; width: 75%; height: 1px;" />

How can a browser know that is supposed to be same as ffffff and not FFFFCC or FFFF99 and so on?

Edited by Jikrantz
Posted

Thomas, in CSS you can write hex color references in one of two ways:

1 - by writing all 6 hexadecimal digits or

2 - by writing only the first digit of each pair.

 

What happens is that if you use the short form #abc, the browser's CSS interpreter will duplicate each digit, resulting in #aabbcc <_<

Posted

And Thomes, check this out:

Less typing means less characters.

Less characters means your files are smaller.

Your files being smaller mean faster transfer times for your site visitors and less bandwidth taken from your account!

 

How's that for coolness? Thumbs Up

Posted
And Thomes, check this out:

Less typing means less characters.

Less characters means your files are smaller.

Your files being smaller mean faster transfer times for your site visitors and less bandwidth taken from your account!

 

How's that for coolness? Thumbs Up

Wow, Raul. I never realized that, that is cool! :rolleyes:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...