Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Please Help

  1. #1
    Join Date
    Jun 2007
    Location
    Kuala Kangsar, Malaysia.
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Please Help

    I'm sorry, I don't know how to say it properly. English is not my language. I hope you will understand what I'm trying to say.

    I realized that my present post looked as though I have used the "<div align=center" tag on it. It seem that the text align on the said post was centered. But when I clicked on the same post in "Previous Posts", the layout become the way it was suppose to look.

    Is it because of some HTML on my template? I'm a newbie to all this, please help.

    Greeting from Malaysia.

    p/s Oops! I almost forgot, my url is http://arahman7.blogspot.com/ The present post is I'm Baaaack!!! Now click I'm Baaaack!!! in the header Previous Posts near the bottom on my left sidebar. You can see the difference.

    I thank you in advance.

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you're trying to center a div, don't use align=center. Use:

    <div style="margin-left: auto; margin-right: auto;">
    content here
    </div>

    You're basically telling the browser to make the left and right margins equal, which will center the div.


    For IE6, you should add another div around the div like so:

    <div style="text-align: center;">
    <div style="margin-left: auto; margin-right: auto;">
    content here
    </div>
    </div>

    The text-align would normally be used for the content of a div, but for IE6, you need a work-around
    Last edited by Veronica; 06-13-2007 at 08:51 PM.

  3. #3
    Join Date
    Jun 2007
    Location
    Kuala Kangsar, Malaysia.
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the head-up, Veronica. But Veronica, did you see the different of my post? The present one and the one in Previous Posts.

    Should I add those lines of code to make it alright, on my template?

  4. #4
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't really see a difference. What resolution are you using? Also, what browser?

  5. #5
    Join Date
    Jun 2007
    Location
    Kuala Kangsar, Malaysia.
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, I don't know how to put my blog screen shot here. I just gonna explain it.

    1. When you open up my url in any browser IE or FF, you will notice a note from IP2location.com that say, "Hello there... It started as though the text align is centered.

    2. Same thing to my blog title
    3. Clicked on the same post, "I'm Baaaack!!!" located on the Previous Posts. Looked at the IP2location.com note. It started like it suppose to be, on the left.

    4. And blog title. Any different?

    5. If not, then I think there must be something wrong with my PC setting. I'm using both browser, IE7 and FF2.0 depending on the site.

    6.Resolution 1024 x 768

  6. #6
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK - now I see it! I'm sorry - I thought you were talking about something else.

    I can't find anything in the code that would explain the difference between the two pages.

    On my hard drive, the copy will align left when you add a style to it:

    Code:
    <div class='widget-content' style="text-align:left">
        <script language="Javascript" src="http://www.ip2phrase.com/ip2phrase.asp?template=Hello there. I see you are from <city>, <country>."></script><br><font color="#5588aa">Thank you for visiting. May you find something useful here. After enjoying your session here, please leave a comment or two about my Blog. I shall appreciate it very much. Bookmark this Blog, or favourite it and tell your friends about it. You can also translate "My Journey To Recovery" in your own language by clicking one of these flags. Enjoy your stay and have fun. I hope will you come back again soon.</font><br/>Powered by <a href="http://www.ip2location.com" target="_blank">IP2Location.com</a>           
    </div>
    Can you add that and see if it changes?

  7. #7
    Join Date
    Jun 2007
    Location
    Kuala Kangsar, Malaysia.
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry for the late reply, Veronica. I add a style to it like you suggested but it still remain the same. So, I deleted the style.

    For the sake of conversation, let say you style worked out. How about the post? Will it be uncentered?

    With my limited knowledge about HTML, I tried looking into it, in the blog template but I can't find anything abnormal.

    Before it was alright. I first noticed it about two posts back. I tried to think what did I do last on the template. All I can think of was, I add a string of codes given to me by the Supreme Commander Coder, jscheuer1 when I had problem with my links when using IE.

    I tried Blogger Help Group, till now no answer. Please Veronica or anybody, please help me straighten out this problem I'm having now. I know it no big deal but it looked weird.

    Greeting from Malaysia.

  8. #8
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The style text-align:left should have uncentered things. The only thing I can think of is it could be something in the javascript that generates the welcome message?

  9. #9
    Join Date
    Jun 2007
    Location
    Kuala Kangsar, Malaysia.
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Veronica. I deleted the javascripts that generated the welcome message, it still not working. There is nothing much I can do, except leave it like that. I'm sure whoever came and read this thread will have some ideas what really happened.

    Hopefully there's some bug that the Blogger people are doing something about it or I shall pray, the problem will righted itself.

    Anyway, thank you Veronica for staying with me, trying to solve this problem. I really appreciate it.

    Greeting from Malaysia.

  10. #10
    Join Date
    Jun 2007
    Location
    Kuala Kangsar, Malaysia.
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Veronica,

    FYI, a friend have solved it. Clicked on the "Align Left" button when writing the post but the title, date and welcome note are still centered. (See my latest post).

    Greeting from Malaysia. I'm gonna have a great week whether I'm centered or not.

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
  •