How to have a bold header text?
Asked Answered
S

2

7

I can't find out how to give my header text some (bold) like on this design.

Here is my html/css project.

There is something wrong with my footer too, I can't give it margin-top or margin-botton :/

I hope someone can give me some tips and tell me what I can do better :)

Suzy answered 21/6, 2011 at 17:19 Comment(0)
H
4

For the bold, remove the

<b>TEXT</b>

tags and use

<span style='font-weight: bold;'>TEXT</span>

For the margin, try padding, OR add this before the FOOTER tag

<div style="clear: both;"></div>
Humidistat answered 21/6, 2011 at 17:27 Comment(0)
I
0

For bold text, I prefer to make a boldText class which can be applied to pretty much anything without having to re-declare the style inline: .boldText { font-weight: bold; }

<element class="boldText">...</element>

That way your "element" could be a span, p, or entire div if you wanted to.

As for the footer margin issue; I just took a look at your site and I'm not seeing anything that looks like an "issue." Did you figure that part out already?

Idun answered 21/6, 2011 at 17:49 Comment(1)
ye clear: both; worked like Stew said, and i have just <span class="bold">Bold text here</span> :) thanks for helpSuzy

© 2022 - 2024 — McMap. All rights reserved.