2 replies [Last post]
Ryyo
Offline
Regular
East Lansing MI
Last seen: 19 years 50 weeks ago
East Lansing MI
Joined: 2003-04-16
Posts: 13
Points: 0

Hey all,

This may actually be an html question, but I am wondering why I get a carriage return when using <h1>... I have <h1> set to a different color and font size, and want to use it mixed in with other fonts. If this is not a capability of html, is there a way I can define custom variables in CSS, so I can have something that I can embed in text that will change it in a CSS defined fashion? Thanks for your input as always!

Ryyo

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 7 years 8 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

Of &lt;h1&gt; and carriage returns

You #can# change H1 to be in a paragraph, but since it's defined in HTML as a header it's probably best not.

Best bet is a span:

<style>
SPAN.name { font-color : red ; font-size : large; }
</style>

hello <span class="name"> red text </span> normal

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

Ryyo
Offline
Regular
East Lansing MI
Last seen: 19 years 50 weeks ago
East Lansing MI
Joined: 2003-04-16
Posts: 13
Points: 0

Of &lt;h1&gt; and carriage returns

Beautiful, that did it! Thanks!

Dude, that is one weird avatar. Laughing out loud