SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2003, 09:18 AM
retroman retroman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 19 retroman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
some problems with CSS across browsers

Hello,
I have a couple of questions I would love answers to that I've been accumulating and trying to solve myself without much luck

1. Does anyone know how I set the BR tag in CSS for changing line heights. In IE5.5 and Opera BR seems to put a line space between, but Mozilla doesn't and I would like it to do this consistently. I need BR because my form based PHP code inserts BR automatically for each new line (which is what I want), I've tried such things as BR{line-height: 2em;} but nothing seems to work. Just to qualify this, I have put in the following in an included stylesheet that seems to make Mozilla remove the line break: BR {display: block } but cannot see how this is causing the problem.

2. Is there a way of making background images in style sheets actually be incorporated into the element for sizing purposes. What I mean is, as an example, if I set the background of a table cell to have a background image when I resize the form to be smaller than the image, the image crops, but if the image was an image element or the actual content of a TD then it isn't cropped.

thanks.

Last edited by retroman : June 2nd, 2003 at 09:24 AM.

Reply With Quote
  #2  
Old June 2nd, 2003, 12:18 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,282 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 16 m 26 sec
Reputation Power: 744
1. <br> is an inline element and line-height needs to be applied to the containing block element.
Code:
<p style="line-height:2em;">foo<br>bar</p>
2. What are you looking for it to do? Resize the image to fit the containing element so that you can always see the entire image? Don't think it's possible with stylesheets alone.

Reply With Quote
  #3  
Old June 3rd, 2003, 03:57 AM
retroman retroman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 19 retroman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The problem is that applies to the whole block, all I want to do is reduce the size of the paragraph break and leave the normal wrapped text as it is. I'm sure it could be done by replacing all the <br /> elements in code with something like '<p class="smalllinebreak"> but I'd rather just take the content from the mySQL table and output it.

There has got to be something that formats BR as in my browser BR changes to a 1em line space and so must be a way of chaning this, as I want to make this 0.5em?

Neil.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > some problems with CSS across browsers


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway