www.webdeveloper.com
Results 1 to 4 of 4

Thread: css <style> attribute

  1. #1
    Join Date
    Jun 2009
    Posts
    11

    css <style> attribute

    Because of the style attribute my website "jumps" in different screensolutions.?..

    my background image fits on every screen because I have used the <center> attribute.. but the picture's and text on that image that is giving me a hard time..

  2. #2
    Join Date
    Aug 2007
    Posts
    3,767
    You'll have to show some code.

    <center> is a tag, not an attribute. Maybe you meant align:center?
    Great wit and madness are near allied, and fine a line their bounds divide.

  3. #3
    Join Date
    Jun 2009
    Posts
    11
    okay.. i have used <center> tags to my image background..:

    <center>
    <img src="../Billeder/Forside1.jpg">
    </center>

    And css to my buttons:

    <a href="Gaestebog.html">
    <img src="../Billeder/8 c.jpg" width="200" height="150"; style="position:absolute; left:825px; top:200px" alt="Fotogalleri">
    </a>

  4. #4
    Join Date
    Mar 2009
    Location
    Yorkshire
    Posts
    266
    It could be because your positioning them absolutely.....it would make them move for different resolutions (i think):

    oh and dont use <center>

    use either:
    Code:
    <div style="text-align:center" >
    
    </div>
    or

    Code:
    <div style="margin:0 auto;">
    
    </div>
    The second would be used for a wrapper for your site content, like on my site www.ryanlund.co.uk << have a look, you will see what i mean

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles