Advanced Search

Results 1 to 10 of 10

Thread: 'for' attribute

  1. #1
    Join Date
    Mar 2008
    Posts
    122
    Thanks
    17
    Thanked 5 Times in 5 Posts

    Default 'for' attribute

    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    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
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2008
    Posts
    122
    Thanks
    17
    Thanked 5 Times in 5 Posts

    Default

    have u got any tips of how tyo do this beacuse i have never done this before.


  4. #4
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    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.
    Jeremy | jfein.net

  5. #5
    Join Date
    Mar 2008
    Posts
    122
    Thanks
    17
    Thanked 5 Times in 5 Posts

    Default

    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>

  6. #6
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    Well, I can help you. (On chat) [off-topic] but go on chat. I invited you.[/off-topic].
    Jeremy | jfein.net

  7. The Following User Says Thank You to Nile For This Useful Post:

    hmsnacker123 (04-13-2008)

  8. #7
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    You mean like
    Code:
    div.class#id {
    margin:auto;
    }
    For a centered div?
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  9. #8
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    He means, like you made the center tag:
    Code:
    <center>
    Then in that you add for="class"
    Code:
    <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.
    Last edited by Nile; 04-13-2008 at 11:31 PM.
    Jeremy | jfein.net

  10. #9
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    which is the same thing as having the margin auto in the CSS.

    only the one class is affected.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  11. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,154
    Thanks
    260
    Thanked 690 Times in 678 Posts

    Default

    <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.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •