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 5 of 5
  1. #1
    Regular Coder KevinG's Avatar
    Join Date
    Aug 2002
    Location
    The Matrix
    Posts
    405
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Heading and a paragraph on the left and another heading and paragraph on the right li

    Hi, I am trying to get a heading and a paragraph on the left and another heading and paragraph on the right line up side by side. Should i be using divs instead of just ids? Also, even though i am using px, the layout dimensions are different in ie6 and ff.


    #headlinered1 {
    margin-left: 30px;
    margin-top: 20px;
    }
    #paragraph1 {
    width: 220px;
    margin-left: 30px;
    text-align: justify;
    }
    #headlinered2 {
    margin-right: 70px;
    margin-top: 10px;
    float: right;

    }
    #paragraph2 {
    width: 220px;
    margin-right: 30px;
    text-align: justify;

  • #2
    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
    CSS is useless without HTML.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder KevinG's Avatar
    Join Date
    Aug 2002
    Location
    The Matrix
    Posts
    405
    Thanks
    3
    Thanked 0 Times in 0 Posts
    <h2 id="headlinered1">Our straightforward approach</h2>
    <h2 id="headlinered2">How to contact us</h2>
    <p id="paragraph1">text here text here</p>

  • #4
    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
    headlinered2 needs to come before headlinered1.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder KevinG's Avatar
    Join Date
    Aug 2002
    Location
    The Matrix
    Posts
    405
    Thanks
    3
    Thanked 0 Times in 0 Posts
    shux aero, that worked! thank you. I never would have solved that. so it was a layout ordering issue.


  •  

    Posting Permissions

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