HighDots Forums  

browser ignore <br>

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss browser ignore <br> in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
red
 
Posts: n/a

Default browser ignore <br> - 09-16-2004 , 11:10 AM






If I have <span>text</span> <br> and then some text

isn't there sopposed to be a line break between the span and the text ?
Why do browsers ignore the <br> ?



Reply With Quote
  #2  
Old   
Els
 
Posts: n/a

Default Re: browser ignore <br> - 09-16-2004 , 11:18 AM






red wrote:

Quote:
If I have <span>text</span> <br> and then some text

isn't there sopposed to be a line break between the span
and the text ? Why do browsers ignore the <br> ?
They don't usually, which doctype declaration are you using?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: S a a r - 9


Reply With Quote
  #3  
Old   
Lennart Fylling
 
Posts: n/a

Default Re: browser ignore <br> - 09-16-2004 , 11:25 AM



Els wrote:
Quote:
red wrote:

If I have <span>text</span> <br> and then some text

isn't there sopposed to be a line break between the span
and the text ? Why do browsers ignore the <br> ?

They don't usually, which doctype declaration are you using?
If it's xhtml 1.0strict, you need a closing tag, like this <br />

--
Lennart Fylling
Standards compliant and accessible web solutions.
Aalesund
Norway




Reply With Quote
  #4  
Old   
Neal
 
Posts: n/a

Default Re: browser ignore <br> - 09-16-2004 , 11:50 AM



On Thu, 16 Sep 2004 16:10:07 GMT, red <groups (AT) reenie (DOT) org> wrote:

Quote:
If I have <span>text</span> <br> and then some text

isn't there sopposed to be a line break between the span and the text ?
In HTML, yes.

Quote:
Why do browsers ignore the <br> ?
Are you using HTML or XHTML? In XHTML the tag must include a slash, use
<br /> instead.



Reply With Quote
  #5  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: browser ignore <br> - 09-16-2004 , 12:48 PM



On Thu, 16 Sep 2004 17:08:06 GMT, red wrote:

Quote:
Actually, there is somewhat of a line break- it just doesn't really go
to a new line.
It really does go to a new line, but
you are going about this all wrong.

Quote:
..Here's the page I'm working on:
http://rainbowfamily.info/bookmarks
You need to wrap those pieces of text in
some logical HTML construct such as a <p>
tag and apply a padding-bottom to get the
spacing you want.

Put such things as '<br><br> ' and browsers
are free to concatenate the two into a single
line break, because that is what the <br>
element is, as opposed to a vertical 'spacer',
which is how you are attempting to use it.

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane


Reply With Quote
  #6  
Old   
red
 
Posts: n/a

Default Re: browser ignore <br> - 09-16-2004 , 01:12 PM



Neal wrote:
Quote:

Right. Floats move the content to the left, and the following content
starts at the float's vertical height. But the content cannot overlap
the float, so your content after the float cannot reach the left margin.

Frankly, don't see why the box is floated at all. I'd just remove the
float style. Or, if there's a reason it's floated that I can't see,
style the content you want under the float for sure with clear: left; -
but the first solution is probably what you want.




Thanks that seems to have fixed it.
The red bordered filename was originally divs- thus the float:left to
get my list of filenames to go one after the other. But I'll just leave
them as spans and remove the float.


I have to go to the dump and I'll fix it up and upload it when I get back.


Reply With Quote
  #7  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: browser ignore <br> - 09-16-2004 , 10:33 PM



red <groups (AT) reenie (DOT) org> wrote:

Quote:
If I have <span>text</span> <br> and then some text

isn't there sopposed to be a line break between the span and the text ?
Why do browsers ignore the <br> ?
What browsers? What page? The psychics in this group are on vacation.
I just tried it once and it works fine.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.