Results 1 to 5 of 5

Thread: HTML: *** Text Alignment

  1. #1

    Thread Starter
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464

    HTML: *** Text Alignment

    Hello,
    I'm not that great with HTML, but I managed to put up a little site. I don't understand what is going wrong now. If you go to www.alacritous.ne1.net/modss.html you'll see the text is like 10 spaces to the right, well I want to get rid of that. For some even strange reason, if I put <p align=left class="forText"> it works. But, I have to put that for EACH line there is text.

    Am I going crazy? lol
    alacritous
    Last edited by alacritous; Sep 4th, 2004 at 06:51 PM.

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Its happening because each "parent" tag is being set to either, the "forContent" or "forMenu" style (class=).
    Code:
    <!-- forAll.css -->
    .forMenu {
    	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    	font-size: 11px;
    	background-color: #C4D0D8;
    	padding-left: 10px;
    }
    .forContent {
    
    	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    	font-size: 11px;
    	background-color: #F1F2F3;
    	padding-left: 10px;
    }
    Whereas the "forText" style is the following (without padding-left):
    Code:
    .forText {
    	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    	font-size: 10px;
    	color: #000000;
    	font-weight: normal;
    	line-height: 15px;
    }
    When I say "parent" tag, I mean for example:
    Code:
    <table border=1 class="forContent"> <!-- this is the parent tag -->
    <table border=1 class = "forText"> <!-- this is the child tag -->
    </table> <!-- end of child tag -->
    </table> <!-- end of parent tag -->
    You can either get rid of the parents, or just change their style

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3

    Thread Starter
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464
    Originally posted by «°°phReAk°°»

    You can either get rid of the parents, or just change their style

    Phreak
    Elaborate please. I don't quite get you.

    Thanks,
    alacritous

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    It's extremely hard to. Do you know the files you are including into your page?

    Click here to see where I got that CSS code. In my above post, the "parent" tag just needs to have the "class=forText" instead of the "class=forContent". Then the "child" tags won't need the "class=forText"..

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5

    Thread Starter
    Hyperactive Member alacritous's Avatar
    Join Date
    Aug 2003
    Posts
    464
    Hello,
    Yeah I understand what files I included, because I made the website...

    I get it now.
    alacritous

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width