WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dnnsigns
    Member
    Posted 6 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
    Member
    Posted 6 years ago #

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

  3. dnnsigns
    Member
    Posted 6 years ago #

    Where do I put it?

  4. shadaik
    Member
    Posted 6 years ago #

    You have two options:

    a)
    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.

    b)
    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
    Member
    Posted 5 years ago #

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

  6. discojing
    Member
    Posted 5 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