It is not fun but please help, iWeb/coding issue

Discussion in 'Mac Apps and Mac App Store' started by georeghudson, Aug 30, 2007.

  1. georeghudson macrumors newbie

    Joined:
    Apr 6, 2006
    Location:
    London
    #1
    Hi,
    I am trying to get my site to left justify. iWeb automatically centers your completed pages but for this particular task I need the site to be justified to th left.

    Although a fairly experienced graphic designer that has a bit of a brush with the code. I can't seem to find what I need to change? I have checked the CSS, js and HTML but not sure which bit is what I am looking for...

    Please help!

    Oh and I think at the Sept Media Event The Beatles will announce with Apples help they are re-forming with holograms and creating the first iBand, it is rumored they will tour with the Spice Girls this Autumn!
     
  2. dalvin200 macrumors 68040

    Joined:
    Mar 24, 2006
    Location:
    Nottingham, UK
    #2
    might help if you could point us to your source code / iweb site?

     
  3. georeghudson thread starter macrumors newbie

    Joined:
    Apr 6, 2006
    Location:
    London
    #3
    At the moment I am creating the site that requires the left justification. I don't think you need the source code for that particular site to work it out, it is a bog standard blank iWeb site with the standard iWeb mess that is created when you publish a site. But if you require a bog standard one to look at,
    here is my personal site http://web.mac.com/georgehudson/iWeb/Home.html
    CSS and JS for that page:
    http://web.mac.com/georgehudson/iWeb/Home_files/Home.css
    http://web.mac.com/georgehudson/iWeb/Home_files/Home.js
    JS for the site:
    http://web.mac.com/georgehudson/iWeb/Scripts/iWebImage.js
    http://web.mac.com/georgehudson/iWeb/Scripts/iWebSite.js

    Thanks
     
  4. dalvin200 macrumors 68040

    Joined:
    Mar 24, 2006
    Location:
    Nottingham, UK
    #4
    the bog standard web page has some html code like:

    <body style="background: #000000; margin: 0pt; " onload="onPageLoad();">
    <div style="text-align: center; ">


    change the text-align: center in the <div> to be text-align: left

    let me know how it goes

     
  5. georeghudson thread starter macrumors newbie

    Joined:
    Apr 6, 2006
    Location:
    London
    #5
    Got there...

    Right with a little help we got there, it was really simple in case your wondering....

    In the bog standard iWeb html source locate the head and div tab. Change the text-align as mentioned above from center to left and change in the div style the margin-left to 0px instead of auto.

    </head>
    <body style="background: #ffffff; margin: 0pt; " onload="onPageLoad();">
    <div style="text-align: left; ">
    <div style="margin-bottom: 0px; margin-left: 0px; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; background: transparent url(WRCETLE_files/CCEDAFF7A.png) repeat scroll center center; text-align: left; width: 600px; " id="body_content">


    Easy, thanks for your help
     
  6. Thrive macrumors newbie

    Joined:
    Jul 7, 2008
    #6
    Help Too

    Hi I'm starting with iWeb 2.0 now and have been desperately trying to do just what you described above. I can't for the life of me find the file you are referencing. Where should I look? It seems this is the only solution I've found online so any help would be great.
     

Share This Page