horizontal lines in a box

horizontal lines in a box

am 16.08.2007 22:12:54 von rsimpson505

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.)

Re: horizontal lines in a box

am 16.08.2007 22:56:11 von lws4art

Topaz wrote:
> 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

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: horizontal lines in a box

am 16.08.2007 22:58:26 von Bernhard Sturm

Topaz wrote:
> 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

--
www.daszeichen.ch
remove nixspam to reply

Re: horizontal lines in a box

am 17.08.2007 11:53:38 von TravisNewbury

On Aug 16, 4:12 pm, Topaz wrote:
> 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.

Re: horizontal lines in a box

am 17.08.2007 12:15:08 von rf

"Topaz" wrote in message
news:1187295174.396120.35330@57g2000hsv.googlegroups.com...

>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?


?


?

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

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

Hmmm. Guessing. You are trying to put a
into a

, thinking that the

is a box? No? Well...

Show us a URL as to how a


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.

Re: horizontal lines in a box

am 21.08.2007 12:17:39 von rsimpson505

On 17 aug, 12:15, "rf" wrote:
> "Topaz" wrote in message
>
> news:1187295174.396120.35330@57g2000hsv.googlegroups.com...
>
> >I have defined a box is CSS.
>
> A box? How? What exactly is a CSS box?
>
> URL?
>
> > How can I draw ahorizontalline inside the box to divide the text
> > content in two?
>
>


?
>
>
?
>
> > (An HR tag breaks the box and cause a page split.)
>
> A page split? HTML has no concept of pages. And if a
splits something
> then what you put the
in is probably not a "box".
>
> Hmmm. Guessing. You are trying to put a
into a

, thinking that the
>

is a box? No? Well...
>
> Show us a URL as to how a


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.

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 class="...."> is not the same as
. 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

Re: horizontal lines in a box

am 21.08.2007 13:51:06 von Bernhard Sturm

Topaz wrote:
>
> 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 > class="...."> is not the same as
>

. 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:


Your Text here




Second part of text




The
would then serve as your horizontal separator between the two
paragraphs.

>
> 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.

> MFG

does that translates into Mit Freundlichen GrĂ¼ssen? :-)

bernhard


--
www.daszeichen.ch
remove nixspam to reply