View Full Version : 'for' attribute
hmsnacker123
04-13-2008, 03:59 AM
i rekon that the w3c should come up with this attribute: <center for=".class"></center> for example if you can a div with the class of '.class' then then center tag applies to that div rather than wrapping it around it. post for any suggestions or variations.
Hmm, thats a great idea. You can make your own with javascript and show us the end result, I'd be happy to fix problems in your code as you go along.
Nile
hmsnacker123
04-13-2008, 12:52 PM
have u got any tips of how tyo do this beacuse i have never done this before.
:confused:
Well do you know javascript at all?
If you do, I'll give you some basic ideas, but they might turn complex. So I'd be willing to help you.
hmsnacker123
04-13-2008, 12:57 PM
yes, i do know a lot of javascript but i have never done anything like this before.
accutally u know ieframe.dll (it comes up when you have an error connecting to the internet)
that has used its custom tag called <id>
Well, I can help you. (On chat) [off-topic] but go on chat. I invited you.[/off-topic].
boxxertrumps
04-13-2008, 11:02 PM
You mean like
div.class#id {
margin:auto;
}
For a centered div?
He means, like you made the center tag:
<center>
Then in that you add for="class"
<center for="class">
The center tag would only effect the ones that had the class, 'class', and the result would not have things without the class, 'class', affected.
boxxertrumps
04-13-2008, 11:18 PM
which is the same thing as having the margin auto in the CSS.
only the one class is affected.
djr33
04-13-2008, 11:52 PM
<b for class=".bold">
<span class="bold">Hi.</span>
<span class="reg">Bye.</span>
</b>
Apparently only "Hi" would be in bold.
Anyway, it seems very odd to me. There would be much better ways to organize that. And that would be confusing.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.