• JamesObZ

    (@jamesobz)


    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter JamesObZ

    (@jamesobz)

    Can anyone advise?

    Many thanks!

    S.K

    (@kichu)

    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

    Thread Starter JamesObZ

    (@jamesobz)

    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

    S.K

    (@kichu)

    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

    Jam

    (@pimaniii)

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

    S.K

    (@kichu)

    //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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Centre Widgets within Sidebar’ is closed to new replies.