Forums

Centre Widgets within Sidebar (7 posts)

  1. JamesObZ
    Member
    Posted 1 year ago #

    Hi all,

    Would appreciate some help here! I have very little coding knowledge and even using firebug I am unable to fix this problem.

    My site is here: http://keyword-elite-reviewed.com/

    As you can see on the right hand side in the sidebar I have 2 active widgets. Currently they are left aligned so it seems. How do i centre these?

    Many thanks,
    James

  2. JamesObZ
    Member
    Posted 1 year ago #

    Can anyone advise?

    Many thanks!

  3. S.K
    Member
    Posted 1 year ago #

    Add "text-align: center;" to the css file for the "p" selector. You can find the exact line on the css file using firebug.

    Hope this helps.

    S.K

  4. JamesObZ
    Member
    Posted 1 year ago #

    S.K, thanks very much!!

    Now that I have done that I have a second possibly more complicated issue.
    As you can see from my sidebar, I have an 'ad' within a table. How can i make the text in the advert left aligned, while having the table itself centered within the sidebar??

    Having the table centered is more important to me out of the 2 if one is an issue.

    Thanks in advance,
    James

  5. S.K
    Member
    Posted 1 year ago #

    I wonder why you should use tables at all for formatting! We have come a long way from it.
    Use a div with "margin: 0 auto;"
    You may add "text-align: center;" to work in older versions of IE.

    S.K

  6. PiManIII
    Member
    Posted 1 year ago #

    You can even use <center></center> html tags, depending what the content is.

  7. S.K
    Member
    Posted 1 year ago #

    //You can even use <center></center> html tags//

    It is deprecated. Better avoid it. Use css instead. It helps in validation and SEO.

    S.K

Topic Closed

This topic has been closed to new replies.

About this Topic