Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    Check out http://www.eadsdirect.co.za/mailsoft

    Ive centered the header and footer on the page. Now how do I left align the text under the "center" of the page? I dont want it left aligned to the browser, but left aligned to the document.

    Help please.... :classic:

  2.  

  3. #2
    Senior Member Physt's Avatar
    Join Date
    Jul 2004
    Posts
    255
    Member #
    6655
    I haven't clicked your link but..
    First you have to have your 'html, body' tags set to 'text-align: center'..then..
    Code:
    html, body{text-align: center;}
    div#container{width: 740px; margin-left: auto; margin-right: auto; text-align: left;}
    The auto margins center it..You MUST have a fixed width on the div though..
    www.controlalternate.com - Web resources and free templates. www.chaosconcepts.net - Custom web and graphic design.
    www.blog.chaosconcepts.net - My Blog

  4. #3
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    I tried that and it didnt work. What Im trying to achieve is I want to have 3 "columns" of text. left,right and center. But they must fit inline with the rest of the document... Check the link out above to see what I mean.

  5. #4
    Senior Member Physt's Avatar
    Join Date
    Jul 2004
    Posts
    255
    Member #
    6655
    I see.. It seems like your approaching the way you set it up wrong.. Check out http://www.glish.com/css/ to see how that kind of design works.. There is no way to left-justify the text without putting it in a div..
    www.controlalternate.com - Web resources and free templates. www.chaosconcepts.net - Custom web and graphic design.
    www.blog.chaosconcepts.net - My Blog

  6. #5
    Member
    Join Date
    Apr 2004
    Location
    UK
    Posts
    46
    Member #
    5821
    yeah

    Hi there,

    Yeah, the previous post is right - if you want one division to be centred while another to be aligned left, both divisions then have to be within another division, if you know what i mean.

    As an example, something basic like:

    <div id="maindiv">
    <div id="centrediv">content here...</div>
    <div id="leftdiv">content here...</div>
    </div

    Hope it helps!

    min8
    www.minimal8.co.uk - minimalist in style

  7. #6
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    I see! So I have to have the whole page inside a container and then specify more div's inside the container that are aligned left, right and center.

    Thanks for the tips.

  8. #7
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    So for any of you following this thread, I fixed the problem... Here is what I wanted to achieve:mailsoft

  9. #8
    Senior Member Physt's Avatar
    Join Date
    Jul 2004
    Posts
    255
    Member #
    6655
    Good job Nothing better than defeating these demons!
    www.controlalternate.com - Web resources and free templates. www.chaosconcepts.net - Custom web and graphic design.
    www.blog.chaosconcepts.net - My Blog


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:34 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com