Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: css/html help!!

  1. #1
    New Coder
    Join Date
    Nov 2008
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    css/html help!!

    Add a short paragraph at the start of the document (eg. this text) and give it a class attribute of leftfloat, then use the float, width and border attributes to align it with the left margin with a box around it and make the main text flow around it.

    any help thank you..
    not sure how to give it a class attribute of leftfloat.. <h1 class="leftfloat>This is the text!</h1> ???

    then i go back to my css sheet and #class{ } ??? and enter the attributes border etc etc ?

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    I'm not sure of I got you right, but:
    Code:
    <style type="text/css">
    h1.leftfloat{
    float:left;
    width:500px;
    border:3px double #555;
    }
    </style>
    <h1 class="leftfloat">This is the text!</h1>
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Sounds like it was a problem for a homework assignment.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    New Coder
    Join Date
    Nov 2008
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rangana View Post
    I'm not sure of I got you right, but:
    Code:
    <style type="text/css">
    h1.leftfloat{
    float:left;
    width:500px;
    border:3px double #555;
    }
    </style>
    <h1 class="leftfloat">This is the text!</h1>
    h1.leftfloat<--- this is what i didnt know. thank you!!!


  •  

    Posting Permissions

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