• Resolved the-bronx-bombers-blog

    (@the-bronx-bombers-blog)


    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)

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter the-bronx-bombers-blog

    (@the-bronx-bombers-blog)

    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.

    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!

    Thread Starter the-bronx-bombers-blog

    (@the-bronx-bombers-blog)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Centering items in text widget’ is closed to new replies.