Reply to topic
<p> and <h> tags...
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
Does the h tag support the color attribute? It doesn't seem that it does, so I'll probably have to combine span w/ h, but just figured I'd ask... and does the p tag support margins/padding? Again, I don't seem to be getting any results from these, so any input is appreciated.
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
Sure you can apply colors to the h tags and the p tags.

If it's not taking in your page - I'd look at the CSS heirarchy in your doc for something screwy...
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
will it be the same color on each 1?

if so just change the default params
byron
Forum Admin

Joined: 07 Mar 2004
Posts: 160
Location: Newark, DE, USA
Reply with quote
I believe the P does not do padding and margin, it's easy enough to do, by putting the p inside a div, in which case you don't really need the P at all.
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
u can change the values of the h tags to so they dont add any space around them if u want or set the space how u want it
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
The only part that I'm having a problem with is that the H tag doesn't want to change the font color... grrr...
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
paste the css for your h tag
webweaver6


Joined: 30 Jan 2004
Posts: 101
Location: Grayslake, IL
Reply with quote
I use margins and padding frequently in p tags, and color in h tags without a problem. I would agree that you might post what you have so we can see where the problem might be.
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
It should look something like this

Code:
<h1 style="color: #cccccc;">hello!</h1>
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
What about and H tag containing an A tag... see any problems with that?
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
post the code doof
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
An <h> tag that contained an <a> tag???

What in the world?

you mean something like

Code:
<h1><a name="hello">Stuff</a></h1>


???
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1029
Location: Felton, Delaware
Reply with quote
Exactly.
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
you prolly have something that is stylizing your <a> tags and that is overriding what is in your <h> tags - try reversing them and see what happens.

Code:
<a name="stuff"><h1>stuff</h1></a>


You know that there is a default stylesheet for your browser - so if you do it like this

Code:
<h1><a name="blah">stuff</a></h1>


You will prolly get default browser colors no matter what you do to the <h> tag if you don't have the <a> tag stylized in your css.


Last edited by bobum on Wed Jan 05, 2005 9:00 pm; edited 1 time in total
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
why? u trying to anchor it?
if so look up accesskeys instead
<p> and <h> tags...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 2  

  
  
 Reply to topic