I'm gonna CSS it!!!

Discussion in 'HTML - XHTML - CSS' started by Jiggles, Jan 3, 2010.

  1. Jiggles Guest

    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 Administrator

    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 Guest

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

    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 Guest

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