Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 26, 2008, 06:31:20 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Simple HTML Question  (Read 881 times)
Big Mountain
Newbie
*
Offline Offline

Posts: 3


« on: February 08, 2008, 05:22:31 PM »

Hi.

In a table data I have four lines of text each line separated by a <br>
The text are different font sizes. The issue I am having is that the lines have space between them above and below. How do I get the lines of text closer together using simple html?

text line 1
|
(this space)
|
text line 2

Regards
Logged

T_Host1
Intergalactic Cowboy
*****
Offline Offline

Posts: 57



WWW
« Reply #1 on: February 08, 2008, 06:18:30 PM »

If your using the <h1> to force text size, it does create a additional (line) space.

Post a bit of your code... should be able to tell what's happening.
Logged

A humbled lunarite whom is aside just minding my own business.
meshackdotcom
Newbie
*
Offline Offline

Posts: 4


« Reply #2 on: February 18, 2008, 12:25:03 AM »

A lot of tags in HTML have padding and\or margin applied by the client (browser). Each browser handles this spacing in a different way. So what I like to do is zero everything out and apply my margins explicitly myself via css. I don't know how familiar you are with CSS, but try this bit of css

Code:
h1, h2, h3, br, p {margin:0;padding:0;}

The above just zero's out a few things, you could add more or take some out as  you see fit. After everything is zeroed out, take a look at how it looks and add back in margin and padding as necessary with a second block of code that follows the first (order is very important) that sets the margins and padding.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM