SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Oct 2008
    Location
    Madrid, Spain
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wordpress Sidebar Problem

    Hey Guys

    Please Help! I have this widget which wont center in the sidebar on my wordpress blog. junglescripts.com/blog.

    The widget code is at:
    junglescripts.com/wordpressproblem.rtf (they wouldn't let me post it here for some reason)

    Ive tried using <center></center> but it didnt work!!!!!

    Thanks

    Adam

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    Instead of adding center tags to your template file, try using CSS on the element giving it margin: auto

  3. #3
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mittineague View Post
    Instead of adding center tags to your template file, try using CSS on the element giving it margin: auto
    In addition to Mittineagues' advice, you would need to give a width for the sidebar to work in all browers....

    Nadia

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    :d'oh: I still forget about that "has layout" thing until it bites me.


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
  •