|
-
Jan 29th, 2004, 10:53 AM
#1
Thread Starter
Frenzied Member
CSS problem [Resolved]
Whenever I do something like this:
Code:
<a href="./Query/"><p class="norm2">Query Setup (without necessary drivers)</p><p class="other">(use if this is not the first time you have run the setup)</p></a>
It always seems to put them 2 lines apart. Almost like when you use <p class="whatever"> and then put another one after it, it acts like there are two <br>'s in there. How can I make it not do that? I want them to be right on top of one another but I want to use different classes for them.
Last edited by ober0330; Jan 29th, 2004 at 01:38 PM.
-
Jan 29th, 2004, 12:21 PM
#2
<p> = paragraph... 
Try <span class="norm2" style="display: inline;">Query Setup</span> etc etc
-
Jan 29th, 2004, 12:34 PM
#3
Thread Starter
Frenzied Member
ok... but now for some reason it doesn't keep all of my css properties (font face/size) when i change it to span.
??
-
Jan 29th, 2004, 01:09 PM
#4
Thread Starter
Frenzied Member
ok, I'm going to post part of my css file, maybe someone can explain what I'm doing wrong:
Code:
p {font-family : Tahoma,Verdana;
font-size : 10pt}
r {font-family : Tahoma,Verdana}
.title2 { font-size: 14pt;
font-weight : bold;
text-align: center;
color: navy}
.title3 { font-size: 12pt;
font-weight : bold;
color: navy;
text-align: center}
.norm{ font-size: 10pt;
font-weight: normal;
text-align: center;
color: gray}
.norm2{ font-size: 10pt;
font-weight: bold;
text-align: center;
color: navy}
.norm3{ font-size: 10pt;
font-weight: normal;
text-align: left}
.phead1{ font-size: 18pt;
text-align: left;
color: black;
font-weight: bold}
I tried to learn CSS on my own, but maybe I'm not doing such a great job.
In all of my files, I've been using
Code:
<p class=whatever>some text
and that is how I display what I want. But if I don't want to use the "p" selector, how do I do it? I've added a "r" selector, but when I use the above with an "r" instead of a "p", it doesn't display correctly.
Help!?
-
Jan 29th, 2004, 01:16 PM
#5
Thread Starter
Frenzied Member
ok... so after doing some of my own research, it appears that selectors can only be HTML tags?! So I guess that's why my stuff isn't working right.
So now my question is, what element is used to refer to normal text in HTML? What should I use for my selector?
-
Jan 29th, 2004, 01:30 PM
#6
Give the p tag zero top and bottom margins.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 29th, 2004, 01:37 PM
#7
Thread Starter
Frenzied Member
SWEET.
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
|