473,473 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Any way to control line height without p {line-height;}?

I've created a style sheet with three columns contained in a
fixed-width box. The columns are all relative position, percentage
widths. (I wanted to avoid the fixed-width columns in the "Holy Grail"
layout).

I'm using paragraph borders to set off items in the middle column. But
I occasionally want to create paragraphs within those paragraphs, and
that's where my layout screws up (Some of you may have already decided
my layout screwed up long before this moment).

I can use <br> to create space within my paragraph blocks. But I'd like
to reduce the line height. Oops -- line-height is a function of the
<p>. Can't create paragraphs within paragraphs without losing my
borders.

Is there any other way to control line-height?

Thanks.

Apr 1 '06 #1
7 7416
qu**********@yahoo.com wrote:
I've created a style sheet with three columns contained in a
fixed-width box. The columns are all relative position, percentage
widths. (I wanted to avoid the fixed-width columns in the "Holy Grail"
layout).

I'm using paragraph borders to set off items in the middle column. But
I occasionally want to create paragraphs within those paragraphs, and
that's where my layout screws up (Some of you may have already decided
my layout screwed up long before this moment).

I can use <br> to create space within my paragraph blocks. But I'd like
to reduce the line height. Oops -- line-height is a function of the
<p>. Can't create paragraphs within paragraphs without losing my
borders.

Is there any other way to control line-height?


Your message is somewhat difficult to understand. You didn't post a URL.
Using <br> and <p> to create space sounds like an attempt to do styling
_without_ CSS. This suggest that you could benefit from XHTML 3.0, which
was announced exactly three years ago, see
http://w2c.shorturl.com
and has now been finally implemented in Internet Explorer 7, which will
auto-install to all Windows systems (Windows 98 and newer) next
midnight, see
http://www.microsoft.com/windows/ie/ie7/
Apr 1 '06 #2
Jukka K. Korpela wrote:
qu**********@yahoo.com wrote:
I've created a style sheet with three columns contained in a
fixed-width box. The columns are all relative position, percentage
widths. (I wanted to avoid the fixed-width columns in the "Holy Grail"
layout).

I'm using paragraph borders to set off items in the middle column. But
I occasionally want to create paragraphs within those paragraphs, and
that's where my layout screws up (Some of you may have already decided
my layout screwed up long before this moment).

I can use <br> to create space within my paragraph blocks. But I'd like
to reduce the line height. Oops -- line-height is a function of the
<p>. Can't create paragraphs within paragraphs without losing my
borders.

Is there any other way to control line-height?

Your message is somewhat difficult to understand. You didn't post a URL.
Using <br> and <p> to create space sounds like an attempt to do styling
_without_ CSS. This suggest that you could benefit from XHTML 3.0, which
was announced exactly three years ago, see
http://w2c.shorturl.com
and has now been finally implemented in Internet Explorer 7, which will
auto-install to all Windows systems (Windows 98 and newer) next
midnight, see
http://www.microsoft.com/windows/ie/ie7/


April fools, you had me there. Good one!

And indeed, the way OP tries to style his content does not seem to make
a lot of CSSense. If only we got a URL, soooo much easier.

<p> within <p> ? Is that possible at all ? Certainly not in any
standard. Or I just got fooled again. Sigh, not sharp today, not sharp I
says!

Enjoy!
Apr 1 '06 #3
Very simply, I'm talking about controlling line height in the empty
space above and below blocks of text.

The following reduces the line height of a paragraph to 6 points.

p { line-height:6pt; }

The following, when calling the above code, puts a 6-point space
between blocks of text:

<p>&nbsp;</p>

My question: Is there another way to alter line height without using
the <p> tag?

Apr 1 '06 #4
Bob Jones wrote:
Very simply, I'm talking about controlling line height in the empty
space above and below blocks of text.
You are commenting on something but you are not quoting or paraphrasing
anything. This, as well as fullquoting on the other hand, is a common
symptom of not having read comprehensively what you are referring to.

In particular, you still didn't post a URL.
The following reduces the line height of a paragraph to 6 points.

p { line-height:6pt; }
It suggests _setting_ the line height of _all_ paragraphs to 6 points.
It is a rather absurd setting.
The following, when calling the above code, puts a 6-point space
between blocks of text:

<p>&nbsp;</p>
What it does is rather browser-dependent, but you are generally very
wrong in your guess.

Why do you play stupid tricks with empty paragraphs (explicitly frowned
upon in HTML specs) instead of learning to use CSS? Maybe you should
really take a look at XHTML 3.0.
My question: Is there another way to alter line height without using
the <p> tag?


The question still does not make any sense. Rather surely, your original
problem has nothing whatsoever to do with line height. You just keep
refusing to tell your real problem.
Apr 1 '06 #5
In particular, I won't post a url because I don't have a url. I don't
have a url because I don't have a server. I don't have a server because
I don't have a completed Web site.

If any of you geniuses would spend five minutes responding to an actual
question rather than scolding other posters in this group, it might be
a worthwhile place to visit.

After reviewing the history of the newsgroup, however, I can see where
you prefer to devote your energy.

I'll look elsewhere for assistance.

Apr 1 '06 #6
On 1 Apr 2006 13:45:20 -0800, "Bob Jones" <qu**********@yahoo.com>
wrote:
In particular, I won't post a url because I don't have a url. I don't
have a url because I don't have a server. I don't have a server because
I don't have a completed Web site.


Can you try setting margin-top and margin-bottom for paragraph ?

--
Steven
Apr 1 '06 #7
Steven wrote:
Can you try setting margin-top and margin-bottom for paragraph ?


That was already suggested in the part of the discussion that OP refused
to understand, though it's really not a dummy empty paragraph that you
should style.

But the OP already told he will make his contribution to raising the
level on two fora and leave us.
Apr 2 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: patrick_a | last post by:
Hello, I am trying to insert multiple instances of a custom user control into a placeholder on an aspx page, based on the records retrieved from the database. I use the datareader to loop through...
7
by: Tom wilson | last post by:
I'm trying to create dynamic controls in ASP.Net. It's driving me nuts. I keep getting the error: Control '16' of type 'RadioButton' must be placed inside a form tag with runat=server. Dim...
6
by: Nick Stansbury | last post by:
Hi, I have a loop running on Page_PreRender that sets a number of controls to invisible based on a set of criteria. Before I do this however, I set all of the drop down lists to be visible with...
3
by: John Hughes | last post by:
I'm trying to add a user control to a form via the pages render method and I get the following error : "Control 'Button1' of type 'Button' must be placed inside a form tag with runat=server" ...
4
by: glenn | last post by:
Hi folks, I am getting an error "Object reference not set to an instance of an object". It seems I have everything in place but something is obviously in err. If you could take a quick peak...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: jelle.huygen | last post by:
Hello, I have a problem in ASP.NET 2.0 with the viewstate of my dynamically added user control. I have reproduced the problem with a very simple user control and a very simple page. On my...
5
by: gregarican | last post by:
There is a C# CTI app I'm working on using Visual Studio 2005 at revision level 8.0.50727-7600. I need a couple of Windows Form Button controls to emulate line buttons on a telephone. So I went to...
8
by: Skysurfer | last post by:
Hi. I have some control of different type which have a particolar property, for instance MyProp. Some other controls don't have this property. How can i make a generic sub that set this property...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.