|
-
Aug 29th, 2004, 02:38 PM
#1
Thread Starter
Hyperactive Member
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.
-
Aug 30th, 2004, 03:44 AM
#2
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
-
Aug 30th, 2004, 06:02 PM
#3
Thread Starter
Hyperactive Member
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
-
Aug 31st, 2004, 02:53 AM
#4
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
-
Aug 31st, 2004, 04:51 PM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|