<BR> tag problem

This is a discussion on "<BR> tag problem" within the Web Page Design section. This forum, and the thread "<BR> tag problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 26th, 2007, 08:58
Junior Member
Join Date: Jun 2007
Location: India
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
<BR> tag problem

Hi All,

I am developing one website for intranet usage.
In that page my lead ask me to reduce the whitespaces between the lines.

<div style="LEFT-MARGIN: 10px; RIGHT-MARGIN: 10px;">External I/O ports :1 VGA, 3 USB 2.0 ports, 1 IEEE-1394, 1 RJ-11, 1 RJ -45, S-video out, 1 Headphone, 1 microphone-jack, 1 Expansion port for xb3000 expansion base, AC Adapter, Kensington lock, 2 Omni-directional microphones</div>
<br>
<div style="LEFT-MARGIN: 10px; RIGHT-MARGIN: 10px;">Video capture interface?:IEEE 1394 Interface</div>

in the page out it displayed like that


External I/O ports :1 VGA, 3 USB 2.0 ports, 1 IEEE-1394, 1 RJ-11, 1 RJ -45, S-video out, 1 Headphone, 1 microphone-jack, 1 Expansion port for xb3000 expansion base, AC Adapter, Kensington lock, 2 Omni-directional microphones


Video capture interface?:IEEE 1394 Interface

too many white spaces between the lines. I have used <p> tag also.
the result is same.
After i removed <br> tag and used <div> tag, but in the preview there is no line breaks between two paragraphs.

My lead said that the current line break is 12pt, but it should be 8pt.

Is there any way to reduce the white space or any styles to reduce or increase the line breaks for <BR> tag.
Please help me to solve this.
Reply With Quote

  #2 (permalink)  
Old Jul 26th, 2007, 09:08
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 717
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <BR> tag problem

Use this html...

Code: Select all
<p>
External I/O ports :1 VGA, 3 USB 2.0 ports, 1 IEEE-1394, 1 RJ-11, 1 RJ -45, S-video out, 1 Headphone, 1 microphone-jack, 1 Expansion port for xb3000 expansion base, AC Adapter, Kensington lock, 2 Omni-directional microphones
</p>

<p>
Video capture interface?:IEEE 1394 Interface
</p>
And create a stylehseet, link this into your html document by placing:
Code: Select all
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
Where stylesheet.css is your css file name and directory.

And in your stylehseet have this code...

Code: Select all
p {
   margin: 0px 10px;
}

p+p  {
   margin-top: 8px;
}
Instead of 8px your better off using an em value, this will scale with your page if text size is increased. So instead of 8px, maybe 0.9em.

Give it a try...
Reply With Quote
Reply

Tags
html

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08


All times are GMT. The time now is 04:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43