SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Unwanted moving

  1. #1
    SitePoint Addict kvnwpts's Avatar
    Join Date
    Mar 2012
    Location
    Helsingborg, Sweden
    Posts
    267
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Unwanted moving

    Hi, I wanna thank all help i got from sitepoint so far.

    To my problem.

    When I margin .inledningsrubrik with 80px, a picture (#pensel) in another div is also moving wich I dont' want it to.

    HTML:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="css/styles.css"rel="stylesheet" type="text/css">
    </head>
    
    <body>
    
    
    <div id="upper">
    
    <div class="center">
    <div id="col1"><img id="slogan" src="images/Logo.png" width="136" height="26" /></div>
    
    <div id="col2">
    
    <ul class="meny">
    
    <li>HEM</li>
    <li><img src="images/Snesträck.png" width="23" height="65" /></li>
    <li>GALLERI</li>
    <li><img src="images/Snesträck.png" width="23" height="65" /></li>
    <li>REFERENSER</li>
    <li><img src="images/Snesträck.png" width="23" height="65" /></li>
    <li>KONTAKT</li>
    
    
    </ul>
    
    
    </div>
    </div>
    
    
    </div>
    
    <div id="wrapper">
    
    
    <div id="inledning">
    
    <div id="ibild"><img id="pensel" src="images/BrushIcon.png" width="155" height="124" /></div>
    
    <h1 class="inledningsrubrik">Måleri / Måleri / Ännu en gång måleri / Måler / Sissta gången måleri.</h1>
    
    <p>Baomnistu samedut peciatisam rem apqueritati jase kwrtyade fasert quasvitae dicta suplicabo nases nerafa esalepque nveritati quasvitae. Baictuplicab jertaesi kertyasnemo enipa vornatur aut ditaut madertae. Minsequuntur magni doloreseos uisquam estqui dolorem ipsquia dolor.</p>
    
    </div>
    
    <div id="minigalleri"></div>
    
    </div>
    
    </body>
    </html>
    CSS:

    Code:
    I appriciate all answers!

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    a live link would really help!

  3. #3
    SitePoint Addict kvnwpts's Avatar
    Join Date
    Mar 2012
    Location
    Helsingborg, Sweden
    Posts
    267
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I don't get how it would help more than this? If you view source and copy it, it's exactly the same as copying this here.

    Correct me if I'm wrong though.
    Quote Originally Posted by Dr John View Post
    a live link would really help!

  4. #4
    SitePoint Addict kvnwpts's Avatar
    Join Date
    Mar 2012
    Location
    Helsingborg, Sweden
    Posts
    267
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I fixed it, I made another div tag, so both floated to the left and that worked.


Bookmarks

Posting Permissions

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