Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help aligning images for different browsers

    Hi all,

    I've been searching everywhere to try and find some information about this question for the last few days, but havent found an answer yet......


    I have recently set up a myspace for my arts business and have been trying to teach myself basic code to add images to the left hand column of my profile. I found the following code, and entered in the positions so it is 107px from the left and 650px from the top.

    <img src="http://aycu34.webshots.com/image/15313/2000564723128318225_rs.jpg" style="position:absolute; left:107px; top: 650px;" border="0">

    Now heres the problem. I can get the images to appear aligned on my Mac, however when I view my profile on a Pc the images are wayyyyyy out of position and covering up other things on my page. (I think this might be something to do with the different browsers and pixel shapes????)
    What I would like to know is if there is another code that I could use that positions the image in a different way, so that the images are aligned with the other elements in this left hand column (that seem to stay in the correct alignment when viewed on both Safari (mac) and IE on a PC.

    Any suggestions would be greatly appreciated.


    warm regards

    Meg

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Basically, you shouldn't be using absolute positioning. We're not going to be able to help without actually seeing your page, but essentially you should remove the absolute positioning and get the alignment you want simply by margins to the images, and floating them as appropriate

  • #3
    New to the CF scene
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thankyou,

    I will read up on margins and floating items. However are there any websites that have code generators for changing these properties? (my code writing skills are pretty bad)

    my myspace URL is http://www.myspace.com/meghanorourkejewellery

    cheers

  • #4
    New to the CF scene
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No luck unfortunately.
    I still havent been able to fix it


  •  

    Posting Permissions

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