473,831 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ 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 7448
qu**********@ya hoo.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**********@ya hoo.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**********@y ahoo.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
8805
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 the records and I want to create a new instance of the user control for each record and then change the properties of the controls within each user control. The problem is that after I create the new instance of the user control, I get a...
7
6401
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 Place1 As New PlaceHolder Controls.Add(Place1) For y = 1 To Choices.RecordCount Choices.MoveTo(y)
6
2040
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 a straightforward recursive loop. Now - I'm really muddled by this - why does this: If TypeOf Ctl Is DropDownList Then Ctl.Visible = true End If
3
5172
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" The user control has this button on its page. I am outputing the <form runat="server"> inside the render method and have also tried adding it to the page and to the control without any luck. Any help appreciated.
4
1736
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 at my code segments and provide any insight in a reply, I would be eternally grateful. My table name is "rfi" and the field with a dropdownlist control is called "contract". I have imported the System.Data and System.Data.OleDb libraries. ...
8
3033
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 way I'm going about doing this might be a little off. I'd appreciate some help. Below is the code I have thus far but I'm not sure how to reference the user control within the foreach loop. <asp:Panel ID="pnlRosterProfile" runat="Server" />
15
6542
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 accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
1
7600
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 usercontrol is a button and a label. Everytime the button is clicked a counter which is stored in the viewstate is increased and displayed in the label.
5
2819
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 create a class file for the user control to subclass this out. Something basic for a start, just initializing things. When I drag this custom control from the Toolbox to my form then Visual Studio just abruptly exits without warning. So I...
8
1377
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 without cast? I can test if the control has the property with this line: Control.GetType.GetProperty("MyProp") But... how can i set this property?
0
9794
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10778
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10538
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10210
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5622
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5788
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4419
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 we have to send another system
3
3077
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.