View Full Version : Font formatting CSS

07-21-2011, 04:06 PM
I'm new to CSS so this is a noob question. I need to know if there is a way to give text that resides in the same div different formatting? In other words I have a div that has some text in it. I would like the top line to be larger than the rest of the text. I have a style sheet attached. Or will I have to insert a new div inside that one for every font size?

07-21-2011, 04:48 PM
Depends what your reason is for making it bigger. If it is a headline/title put it in h1 to h6 (header tags). If it isn't a headline but say a first paragraph to highlight then put it in a p (paragraph) tag as usual and style the first with a span tag.