Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

Hybrid Hooks and Widgets Plugin

  1. Love the plugin as dealing with the function hooks can be a pain. my question is how can you center images and code inside the hook widget. Ive tried using div's and < center > code but nothing works. Is there a secret?

  2. The secret is that <center> is deprecated xhtml strict code.

    You may use css text-align center
    http://www.w3schools.com/CSS/pr_text_text-align.asp

  3. You must be a logged-in exclusive member to view this reply.

  4. I just did it like this

    <div style="margin:auto;">ad code, img, etc etc</div>

    which did not work

  5. You must be a logged-in exclusive member to view this reply.

  6. If you want to do inline CSS, this bit for the style works for me:

    style="display:block; margin:0 auto;"

    If your CSS is in your stylesheet, you should name the .class/#ID in the <div> tag and add the CSS for the .class/#ID like Justin showed earlier.

  7. Sorry for giving a not 100% correct advice here, but isnt it so that using text-align: center on a div centers all content inside the div, while margin: 0 auto; centers the div itself but not the content in the div ?

  8. I'm using

    <div style="display:block;margin:0 auto;"><img src="www.imgurl.com"></div>

    and it just keeps the image aligned to the left. I want to be able to add ad code as well and center it in the header and footer using the Hybrid Hook plugin.

  9. You must be a logged-in exclusive member to view this reply.

  10. You must be a logged-in exclusive member to view this reply.

  11. Oh, yeah, I've learned that the hard way before. I should have remembered to say that the inline CSS should be added to the <img> tag. Sorry!

  12. that works for images, but wont i need a centered div for the ad code?

  13. I think then you'd need to add the inline CSS to the <div> tag ALSO.

    Is this right?

  14. You must be a logged-in exclusive member to view this reply.

  15. gah, wasnt even thinking about my div being outside of the wrap :( the width worked perfect!

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (253 posts)
  • Hybrid Theme (21,735 posts)
  • Options Theme (10,356 posts)
  • Structure Theme (2,747 posts)
  • Outline Theme (36 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (305 posts)
  • WordPress Plugins (2,045 posts)
  • General Discussion (5,276 posts)