1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML I'm gonna CSS it!!!

Discussion in 'Web Development' started by Jiggles, Jan 3, 2010.

  1. Jiggles

    Jiggles Member

    Help I'm a DJ

    The news letter text box at the top wont stay where its ment to be! :mad: When you resize the window or that it jumps about. What can I do to solve this?

    I can post the CSS and HTMl if you want.

    Callum
    kalaxhosting.co.uk/testing/help/
     
  2. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    You're newsletter in the code is placed outside the header.
    Change this
    Code:
    <div id="header"></div> <div id="newsletter">
                            <input type="text" value="enter your email..." class="newsletter"/><input type="submit" value="OK" class="newsletter-submit"/>
                        </div>
    
    
    
    To this:
    Code:
    <div id="header">
      <div id="newsletter">
       <input type="text" value="enter your email..." class="newsletter"/>
       <input type="submit" value="OK" class="newsletter-submit"/>
      </div>
    </div>
    
    
    
     
  3. Jiggles

    Jiggles Member

    Nope that's still not fixed it :(
     
  4. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    You placed your newsletter GUI in the header and you're using a liquid design for your header on top of that.
    You can solve this problem in two ways:
    Don't use a liquid design meaning don't use this in you're CSS:
    Code:
    #header {width: 100%;}
    
    But something like:
    Code:
    #header {width: 960px;}
    
    or you can cut out the newsletter box in your image editor and place it:
    Code:
    #newsletter {background-image:url('newsletter.jpg')} 
    
    It's ok to use a liquid design or place GUI elements in one big image, but doing both is not. Note however that this is technically possible but it is far from practical in your case.
     
  5. Jiggles

    Jiggles Member

    I seemed to have hacked it into it working. Thanks! :)