Website CSS problem

Discussion in 'CSS' started by Markvis14, Nov 5, 2009.

  1. #1
    Hello guys,

    My website template: digitial-hosting.co.uk

    I have problems with everything below the webhosting packages
    The images and text move with the browser when you resize it.

    How do I fix this? or make it locked so it doesnt move with the browser?

    Regards,
    Mark
     
    Markvis14, Nov 5, 2009 IP
  2. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looks like the stuff staying still is in the id content. Try and move the items in to there.
     
    LeetPCUser, Nov 5, 2009 IP
  3. Markvis14

    Markvis14 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi, could you be more specific on how to do that?

    Here is my code:

     
    Markvis14, Nov 5, 2009 IP
  4. Freditpl

    Freditpl Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi Markvis14,
    please try following:

    find code:
    <div>
    <div id="shared">
    Code (markup):
    replace to
    <div style="width: 900px;">
    <div id="shared">
    Code (markup):
    also
    find code:
    #content {
    	position:absolute;
    	top:309px;
    	width:900px;
    	left: 235px;
    }
    
    Code (markup):
    replace to

    #content {
    	position:absolute;
    	top:309px;
    	width:900px;
    	/*left: 235px;*/
    }
    Code (markup):
    Please let us know about result
     
    Freditpl, Nov 5, 2009 IP
  5. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #5
    The problem is you are using absolute positioning on a lot of this. Absolute positioning removes the elements from the normal flow and that's why things are moving up on the page and covering up other elements. I don't have time to look to see what the fix is going to be now.
     
    drhowarddrfine, Nov 5, 2009 IP
  6. Markvis14

    Markvis14 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I just seemed to have fixed it myself.

    In the following code:
    I removed the "left: 85px" as it wasn't there in the original, now it seems to be working just fine.

    Thanks everyone for their help!
     
    Markvis14, Nov 5, 2009 IP