i'm using a 30 px font in my title but it creates a large unwanted gap right under it. is there a way to remove this whitespace?
HTML Help Needed: Removing Gap Under Big Text
Collapse
X
-
using an <h1> tag?
Use css to remove the margins.
<h1 style="margin: 0px;">Title</h1> -
try using line-height set the same as your font size.Last edited by The Truth Hurts; 04-10-2008, 06:05 AM.Comment
-
-
If you paste the code or a link to the html code, or send it via ICQ - I can help you.
It's just next to impossible to do it blind.*** Andrew Love ***
Services: (1) Web Design, (2) Graphic Design, (3) E-commerce, (4) Database Development,
(5) Web Analytics, (6) Targeted Lead Generation, (7) Marketing and Consulting
Mainstream: Successful Website Landing Page Design | ICQ: 360-83-9627Comment
-
Probably the h* issue to. As suggested, just remove the margin.
Does using H1, H2 tags still have SEO relevance?Comment
-
Like they said, it's hard to determine without the page as an example.
My guess/contribution would be to create an h1 style like so:
h1 {display: inline;
font-size: 30px;}
or if the title is a class or element:
.title {display:inline;
font-size: 30px;}
#title {display:inline;
font-size: 30px;}
The display:inline; attribute will remove the auto-linebreak of h and other tags in css.
You might want to float:center the thing too if what follows your title wants to wrap to it...
YOU Are Industry News!
Press Releases: pr[at]payoutmag.com
Facebook: Payout Magazine! Facebook: MIKEB!
ICQ: 248843947
Skype: Mediaguy1Comment
-
HTML
CSSCode:<div align="center" class="title">GFY Rocks The Box</div>
i tried adding 'display:inline;' into my css title tag but i'm not sure if that did what i was looking for because it aligned my title left when its suppose to be centered. any ideas?Code:.title { font-size: 30px; font-family: "Trebuchet MS" }Comment
-
thanks bro.. i believe this is what i was looking for... but i had to make some minor adjustments to the line-height value...
i'm using <body topmargin="0" bottommargin="0"> in my html file so when line-height is set to anything lower then 30 then my title gets cut off at the top.Code:.title { font-size: 30px; font-family: "Trebuchet MS"; line-height: 30px; margin: 0px; }Comment
-
-
glad to here you got that covered. nice work p!nk*** Andrew Love ***
Services: (1) Web Design, (2) Graphic Design, (3) E-commerce, (4) Database Development,
(5) Web Analytics, (6) Targeted Lead Generation, (7) Marketing and Consulting
Mainstream: Successful Website Landing Page Design | ICQ: 360-83-9627Comment


Comment