WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Centering items in text widget (5 posts)

  1. The BRonx Bombers Blog
    Member
    Posted 4 years ago #

    i added javascrpit ads to my site using the text widget, but the adds to not fit inside the box. they would but it appears that there is a margin setting on the box. does anyone know where to go to edit this? (see the godaddy ad at thebronxbombersblog.com)

  2. ClaytonJames
    Member
    Posted 4 years ago #

    appears that there is a margin setting on the box. does anyone know where to go to edit this

    I think you can try changing this

    .sideblock
    {
    padding: 5px 10px;
    margin-bottom: 15px;

    To this

    .sideblock
    {
    padding: 5px 4px;
    margin-bottom: 15px;

    ...but it will affect every sidebar block.

    I think the alternatives might be defining a div style in the text widget itself, something like;

    <div style="text-align:center;">your content</div>

    That may not be effective by itself for centering images,though. "display:block;" comes to mind for some reason, for images, or perhaps just redefining the height and width of the images to fit the constraints of the sidebar blocks would be more effective.

  3. The BRonx Bombers Blog
    Member
    Posted 4 years ago #

    Thanks for the reply, neither worked though. I made the first change in the stylesheet is that correct? i cant change the image sizes because it is a javascript code for an ad image.

  4. ClaytonJames
    Member
    Posted 4 years ago #

    I made the first change in the stylesheet is that correct

    'yep. You may need to force the browser to reload the style sheet from the server to pickup the change. (Ctrl+F5) might do it. If not, clear the cache and see if that does it. I tried it using Firebug, and it really didn't look too bad. A compromise none the less. But not too bad.

    Good luck to you!

  5. The BRonx Bombers Blog
    Member
    Posted 4 years ago #

    Ctrl+F5 did the trick. i tried changing that setting this morning but didn't know to ctrl+F5. Thanks for your help, RESOLVED.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags