The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Centering Social Bookmarks and Navbar Text?? (6 posts)

  1. dnnsigns
    Posted 8 years ago #

    How do I center my Social Bookmarks at the bottom of each page?

    Also the text in the NavBar at the top of the page?

    The site is http://www.dnnsigns.co.uk

  2. shadaik
    Posted 8 years ago #

    Wrap 'em in a div or two and give it the property style="text-align:center;"

  3. dnnsigns
    Posted 8 years ago #

    Where do I put it?

  4. shadaik
    Posted 8 years ago #

    You have two options:

    You do it like this:
    <div style="text-align:center;">Your content that is to be centered goes here</div>
    In this case you need to do this once to your navigational links in the header and once around the bookmark icons. If you use a plug-in for the bookmarks, it depends on the plugin you use.

    Or you do it via your css. In that case, you begin like before, only this time it is:
    <div class="pick_any_name_for_your_class">again, your content goes here</div>
    and add this to your stylesheet (anywhere in your stylesheet, preferably at the bottom):
    .name_of_your_class { text-align:center; }

    The latter has the advantage that you can also use this for future changes, simply wrapping the <div class="name_of_your_class"></div> around anything that can be centered (works for me on text, pics, embeds, javascript, iframes), wether it is part of the design or a post (unless you write posts using the visual editor).

  5. maevealleine
    Posted 8 years ago #

    I searched all over creation for how to center a stupid javascript and here the answer was all along. TYTYTYTYTY!

  6. discojing
    Posted 8 years ago #

    if you want the text to be aligned to the left or right (not center) and just want the column to be centered, then try the 'float' command instead of text-align.
    You can use both text-align and float and have different values for them.

Topic Closed

This topic has been closed to new replies.

About this Topic