Forum Moderators: not2easy

Message Too Old, No Replies

How to change font sixe

Probably the stupidest question yet!

         

carfac

7:13 pm on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi:

I know this is probably REALLY basic, but I am really bad at CSS- so accept my apologies!

I want to have one line that has two different font sizes... but does not start a new line where the font changes size. The CSS code is pretty easy- I got that:

.link_num (
display:inline;
font-size: 10px;
}

my question is how to call this so it does not make a new line. I tried <P CLASS=link_num> or <DIV CLASS=link_num>, and that works in IE, but made a new line in Netscape.

Thanks!

Dave

bruhaha

7:21 pm on Mar 30, 2005 (gmt 0)

10+ Year Member



"div" and "p" are used for block elements; if you're only working inline you should almost always use "span", thus:

<p>blah blah<span class="link_num">blah blah in different font</span>blah blah</p>

I am a bit surprised, however, that using "display: inline" didn't do the trick. Which version of Netscape are you testing on?

carfac

7:30 pm on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



bruhaha:

Thanks- that is what I needed!

Netscape 7.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

Dave