By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,814 Members | 2,162 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,814 IT Pros & Developers. It's quick & easy.

display h1 and p on same line

P: n/a
hi all

in a cell in my table i want to display a h1 and a p on the same line.

how can this be achieved through style manipulation?

regards

marc

Sep 9 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
libsfan01 wrote:
in a cell in my table i want to display a h1 and a p on
the same line.

how can this be achieved through style manipulation?
CSS questions would be better asked on CSS newsgroups.

Richard.
Sep 9 '06 #2

P: n/a
CSS questions would be better asked on CSS newsgroups.
There arent any good ones :-(

Sep 9 '06 #3

P: n/a
libsfan01 wrote:
>CSS questions would be better asked on CSS newsgroups.

There arent any good ones :-(
Yes there are, but your style of asking questions may not get the best
responses from them.

Richard.
Sep 9 '06 #4

P: n/a
<style>
h1, h1+p {display:inline}
h1 {clear:left}
h1+p {clear:right}
</style>
Add classes, IDs, and the such as you see fit.

Richard Cornford wrote:
libsfan01 wrote:
CSS questions would be better asked on CSS newsgroups.
There arent any good ones :-(

Yes there are, but your style of asking questions may not get the best
responses from them.

Richard.
Sep 9 '06 #5

P: n/a
h1 {clear:left}
h1+p {clear:right}
thanks joshie.

does this however only work with 2 elements, what about 3?

also anyone know any good css groups?

regards

marc

Sep 9 '06 #6

P: n/a

Joshie Surber написав:
<style>
h1, h1+p {display:inline}
h1 {clear:left}
h1+p {clear:right}
</style>
Add classes, IDs, and the such as you see fit.

Richard Cornford wrote:
libsfan01 wrote:
>CSS questions would be better asked on CSS newsgroups.
>
There arent any good ones :-(
Yes there are, but your style of asking questions may not get the best
responses from them.

Richard.
try also
P {width:50%;float:left}
or
H1 {width:50%;float:left}

(depends on the current tags position)

Sep 9 '06 #7

P: n/a
libsfan01 said the following on 9/9/2006 5:18 PM:
>h1 {clear:left}
h1+p {clear:right}

thanks joshie.

does this however only work with 2 elements, what about 3?

also anyone know any good css groups?
How about the one dedicated to CSS?

comp.infosystems.www.authoring.stylesheets

But, as Richard stated, your manner of asking questions may get you
black balled before you even start.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 12 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.