Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Opera/CSS problem

Reply
Thread Tools

Opera/CSS problem

 
 
Wayfarer
Guest
Posts: n/a
 
      09-23-2003
For ultra-picky formatting reasons, my website uses styles that affect
the line height for the BR tag:

br.low {line-height: 7px;}

br.lower {line-height: 1px;}

They work fine in IE 6, Netscape 7 and Firebird, but Opera just ignores
them. I've also tried using percentages, with the same results.

The website is at http://wayfarer.brinkster.net/ and the stylesheet is
at http://wayfarer.brinkster.net/journeys.css.

If anyone could counsel me on the correct way to do this, I'd appreciate
it.

TIA.

Wayfarer

--
http://www.velocityreviews.com/forums/(E-Mail Removed)
Journeys: http://wayfarer.brinkster.net/
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      09-23-2003
In post <(E-Mail Removed)>
Wayfarer said...

> For ultra-picky formatting reasons, my website uses styles that affect
> the line height for the BR tag:
>
> br.low {line-height: 7px;}
> br.lower {line-height: 1px;}


thats just ridiculous

> They work fine in IE 6, Netscape 7 and Firebird, but Opera just ignores
> them.


<quote>
A line break is defined to be a carriage return (&#x000D, a line
feed (&#x000A, or a carriage return/line feed pair. All line breaks
constitute white space.
</quote> http://www.w3.org/TR/html401/struct/text.html#edef-BR

operas behavior is correct

> The website is at http://wayfarer.brinkster.net/ and the stylesheet is
> at http://wayfarer.brinkster.net/journeys.css.


i recommend you start again. your html/css is waaaaay more complex
than it needs to be. what is this?: <div class="hr"><hr></div>. whats
with all the <div class="nav">? you only need one. etc etc etc

--
23/September/2003 04:09:43 pm
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      09-23-2003
Wayfarer <(E-Mail Removed)> wrote:

> For ultra-picky formatting reasons, my website uses styles that affect
> the line height for the BR tag:
>
> br.low {line-height: 7px;}
>
> br.lower {line-height: 1px;}


Tags don't exist in CSS. It's elements that count. What could it possibly
mean to set the line height of a _line break_? How high can you break a
line? For an inline element, the property sets the height of the boxes
generated by the element. The BR is inline, but it generates no box.

> If anyone could counsel me on the correct way to do this, I'd
> appreciate it.


I think you need to specify what "this" is, i.e. to tell what you wish to
achieve, rather than just mention two CSS rules, which actually should not
have any effect by the specifications.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments