You are viewing our Forum Archives. To view or take place in current topics click here.
The best HTML feature you haven't heard about
Posted:
The best HTML feature you haven't heard aboutPosted:
Status: Offline
Joined: Jan 13, 201113Year Member
Posts: 1,572
Reputation Power: 67
Status: Offline
Joined: Jan 13, 201113Year Member
Posts: 1,572
Reputation Power: 67
If you are pretty familiar with HTML, you probally know this ugly thing called "inline styling". While this is nothing new itself, it does add something most developer never heard of.
While this does seem like it's a joke, it's actually not. Let me prove it to you with live examples:
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ] (I had to make the text white here with CSS)
Try it out yourself!
So... You might be wondering how this is possible. The answer can be found here:
[ Register or Signin to view external links. ]
... Just one more thing. I forgot to mention this only works for the <body> element (for me atleast). If you find a way to use this for other elements aswell, let me know
<body bgcolor="chucknorris"></body>
While this does seem like it's a joke, it's actually not. Let me prove it to you with live examples:
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ]
[ Register or Signin to view external links. ] (I had to make the text white here with CSS)
Try it out yourself!
So... You might be wondering how this is possible. The answer can be found here:
[ Register or Signin to view external links. ]
... Just one more thing. I forgot to mention this only works for the <body> element (for me atleast). If you find a way to use this for other elements aswell, let me know
#2. Posted:
Status: Offline
Joined: Oct 17, 201212Year Member
Posts: 594
Reputation Power: 23
Okay, it's trying to read the letters inside as a hex number... Instead it is getting the first few letters and turning them into the most relevant color solution possible.
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.