|
| |
|
|
labs123
Posts: 226 Joined: 7/1/2004 From: Staffordshire, UK Status: offline
|
am i using css properly??? - 3/14/2005 7:36:42
Hi Im currently learning css. Instead of using bold I have defined a span style for bold as I need to use it in the middle of paragraphs.
span.bd
{ font-size: 10px; font-weight: bold }
Is this the best way to do this??? I also need to make paragraphs bold should I use the same span or define it as a paragraph style Thanks
|
|
|
|
labs123
Posts: 226 Joined: 7/1/2004 From: Staffordshire, UK Status: offline
|
RE: am i using css properly??? - 3/14/2005 9:21:06
Thanks for the advice Donkey. Im a little new to this so did u mean like this
p.bold
{font-size: 10px;
font-weight: bold
}
Can I just use the b in frontpage or did you mean define it like this in the style sheet
b
{font-weight: bold}
|
|
|
|
Nicole
Posts: 2843 Joined: 9/15/2004 From: Nambucca / Kempsey, Australia Status: offline
|
RE: am i using css properly??? - 3/14/2005 18:43:01
Hi Labs, It's probably a very basic tip, but we (I do) tend to get wrapped up in the actual CSS and page that i'm working on, and lose sight of the forest for the trees. An excellent example of this is the most recent questions i've asked on this board about some CSS problems. It takes patience, but sometimes when you encounter a problem, try starting a new page, attaching a brand new CSS with only the code you're having trouble with and experiment with that code and see what happens to the new page. I know it sounds very basic, but i've just done this, and solved a problem in a matter of 10 minutes that i'd laboured over for 2 days. Stick with CSS btw, i'm very new to it also, and can't imagine creating a site without CSS again! Nicole
_____________________________
|
|
|
|
d a v e
Posts: 4138 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: am i using css properly??? - 3/15/2005 0:17:07
unless you have some specific reason for doing so i would just leave it in the html, i.e. use <strong>this text is bold</strong> though of course there's nothing to stop you playing:)
_____________________________
David Prescott Gekko web design
|
|
|
|
labs123
Posts: 226 Joined: 7/1/2004 From: Staffordshire, UK Status: offline
|
RE: am i using css properly??? - 3/15/2005 10:15:32
quote:
Oh please don't encourage him! sorry Jaybee - Its too late!!!!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|