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 4 of 4
  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    30
    Member #
    25042
    I Have been staring at the computer so long today I can't for the life of me figure out the most BASIC problem.

    What CSS is driving the text in the "maincontentindex" div on this page to the left, even if I specify padding of 25px in it?!?

    http://www.fallick.com/test/indextest.html

    Anyone with fresh eyes that could help out here would be greatly apprecaited!

    Thanks...

    -Dre

  2.  

  3. #2
    Senior Member Kayo's Avatar
    Join Date
    Dec 2006
    Location
    Brampton Ontario
    Posts
    416
    Member #
    14523
    Liked
    39 times
    The problem is that the containing box for maincontentindex starts at the same place as the navigation. The only reason why there is no text on top of the navigation is because the navigation is float: left, so the text would wrap around it.

    Now the solution, which is quite easy. You just to add a margin the the left of maincontentindex, with the same amount of pixels as the navigation. In this case, is 230px. Just add "margin-left: 230px;" to maincontentindex, then your done.

  4. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    2
    Member #
    27366
    Quote Originally Posted by DreBeltrami, post: 203051
    I Have been staring at the computer so long today I can't for the life of me figure out the most BASIC problem.

    What CSS is driving the text in the "maincontentindex" div on this page to the left, even if I specify padding of 25px in it?!?

    http://www.fallick.com/test/indextest.html

    Anyone with fresh eyes that could help out here would be greatly apprecaited!

    Thanks...

    -Dre
    it can be solved with "margin-left" just try.

  5. #4
    Member
    Join Date
    Nov 2010
    Posts
    30
    Member #
    25042
    I KNEW it was staring right at me - thanks a ton to you both!!


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 09:54 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com