horizontal lines in a box

T

Topaz

I have defined a box is CSS.
How can I draw a horizontal line inside the box to divide the text
content in two?

(An HR tag breaks the box and cause a page split.)
 
J

Jonathan N. Little

Topaz said:
I have defined a box is CSS.
How can I draw a horizontal line inside the box to divide the text
content in two?

(An HR tag breaks the box and cause a page split.)

Divide the text with two internal block elements and style the first
with a bottom border
 
B

Bernhard Sturm

Topaz said:
I have defined a box is CSS.

what do you mean by 'box'?
How can I draw a horizontal line inside the box to divide the text
content in two?

(An HR tag breaks the box and cause a page split.)
maybe with another div?
or by applying

p {
border-top:1px solid #000;
}

but I don't know want exactly you want to achieve. Please post a URL to
demonstrate your problem.

HTH
bernhard
 
T

Travis Newbury

I have defined a box is CSS.
How can I draw a horizontal line inside the box to divide the text
content in two?

Don't know about that, but I did see Justin Timberlakes "Dick in a
box" music video and it was pretty funny.
 
R

rf

I have defined a box is CSS.

A box? How? What exactly is a CSS box?

URL?
How can I draw a horizontal line inside the box to divide the text
content in two?

<hr>?

(An HR tag breaks the box and cause a page split.)

A page split? HTML has no concept of pages. And if a <hr> splits something
then what you put the <hr> in is probably not a "box".

Hmmm. Guessing. You are trying to put a <hr> into a <p>, thinking that the
<p> is a box? No? Well...

Show us a URL as to how a <hr> breaks your box.

Given that you have come in from the dreaded google groups I quite expect to
never to hear from you again. It was fun, however, to try to guess what you
are really asking.
 
T

Topaz

A box? How? What exactly is a CSS box?

URL?


<hr>?



A page split? HTML has no concept of pages. And if a <hr> splits something
then what you put the <hr> in is probably not a "box".

Hmmm. Guessing. You are trying to put a <hr> into a <p>, thinking that the
<p> is a box? No? Well...

Show us a URL as to how a <hr> breaks your box.

Given that you have come in from the dreaded google groups I quite expect to
never to hear from you again. It was fun, however, to try to guess what you
are really asking.

Richard - you issued the challenge, so you are hearing from me (after
a delay, I admit).
You forced me to examine my "definition" - it turns out that a <p
class="...."> is not the same as
<div class= " ">. The div gives a box which accepts an hr; the p
does not. Right?
And Jonathan and Bertrand, on the way to a solution I used input from
you both.
To all, my thanks (even from a Google Groups user :)

PS What should I use instead of GG? Not OE6 surely?
MFG
Topaz
 
B

Bernhard Sturm

Topaz said:
Richard - you issued the challenge, so you are hearing from me (after
a delay, I admit).
You forced me to examine my "definition" - it turns out that a <p
class="...."> is not the same as
<div class= " ">. The div gives a box which accepts an hr; the p
does not. Right?

A div and a p element is something definitely different. The p-element
is used to structure text (A paragraph is a semantic element with
respect to content). A div can be used as a block element in order to
provide a layout container. I suggest you start to read some good books
about CSS/HTML.

I believe you are trying to incorporate something like this:

<div>
<p>Your Text here</p>
<hr />
<p>Second part of text</p>
</div>

PS What should I use instead of GG? Not OE6 surely?

I use Thunderbird as my News-reader. This is handy enough for me, maybe
others have different choices.

does that translates into Mit Freundlichen Grüssen? :)

bernhard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top