![]() |
HTML Help Needed: Removing Gap Under Big Text
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?
|
using an <h1> tag?
Use css to remove the margins. <h1 style="margin: 0px;">Title</h1> |
Code:
.title { |
try using line-height set the same as your font size.
|
This thread is useless without either link or else html quote.
|
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. |
Quote:
|
User a spacer.gif and size it very small
|
Probably the h* issue to. As suggested, just remove the margin.
Does using H1, H2 tags still have SEO relevance? |
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... |
HTML
Code:
<div align="center" class="title">GFY Rocks The Box</div> Code:
.title { |
Code:
.title { font-size: 30px; font-family: "Trebuchet MS"; |
Quote:
Code:
.title { |
Quote:
|
glad to here you got that covered. nice work p!nk
|
All times are GMT -7. The time now is 01:32 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123