This is a discussion on "Simple but so annoying" within the Web Page Design section. This forum, and the thread "Simple but so annoying are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Simple but so annoying
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Simple but so annoying
Hey guys
I know there is probably a simple answer to this question, How do I get two paragraphs on the same line? e.g <p>Hello</p><p>Hello</p> Ive nearly completed my first site in css but this one simple thing i is really annoying Thank for any help Sean |
|
|
|
#2
|
|||
|
|||
|
Re: Simple but so annoying
On the same line or positioned next to each other in their own invisible boxes???
If you just want the two hello's next to each other then wrap them in the same <p> tags. If you want them alongside each other in their own little space then wrap them in seperate <div> tags and just float them alongside each other just like you do with the main layout. There may be another way but that's probably how I'd do it. If you want more info just ask. Pete. |
|
#3
|
|||
|
|||
|
Re: Simple but so annoying
if you do what your saying then your going to get ...
hello hello Their going to have to be in the same tag without the paragraph. why you would want to do that is beyond me but it what you want. |
|
#4
|
||||
|
||||
|
Re: Simple but so annoying
There's no reason what-so-ever why you'd need to achieve this using two paragraphs but I won't go into that...
Just use: style="display:inline" ie.: <p style="display:inline">Hello</p><p style="display:inline">Hello</p> But really, you should use a span, or do this: <p>Hello Hello</p>
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#5
|
|||
|
|||
|
Re: Simple but so annoying
The hello may just be an example and there may be more content. There maybe some reason that we aren't understanding. But there may not. I agree though - there's no practical reason to display text like this.
Pete. |
|
#6
|
|||
|
|||
|
Re: Simple but so annoying
You could simulate columns with a styled list. Too bad CSS3 support is scarce as CSS3 has a multi-column module.. grrr.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Simple but so annoying
fershizzle
|
|
#8
|
|||
|
|||
|
Re: Simple but so annoying
Not sure if you've figured it out yet but ... here's some code
|
|
#9
|
||||
|
||||
|
Re: Simple but so annoying
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#10
|
|||
|
|||
|
Re: Simple but so annoying
Sorry , totally my fault for not explaining properly.
"Hello" was just an example, The same problem also happens when I want to add a text link next to a paragraph. Better example ........ "Click here to open up a new window" but on the same line. The coding below is what I use at the moment <a class="one" href="sample.htm">click here</a><p>to open up a new window</p> but it displays the link and the paragraph on separate lines. Sorry for wasting you time and thank you for all of your help. Sean |
|
#11
|
||||
|
||||
|
Re: Simple but so annoying
Quote:
<p><a class="one" href="sample.htm">click here</a> to open up a new window</p> In fact, your suggestion isn't proper markup. but anyway, you can do this: <a class="one" href="sample.htm">click here</a><p style="display:inline">to open up a new window</p> Who am I to judge eh?
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#12
|
|||
|
|||
|
Re: Simple but so annoying
Put the link within the paragraph tags as spinal007 said don't put them outside it's pointless.
Pete. |
![]() |
| Tags |
| paragraph problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Just want simple Background Song (.mp3) and a simple start/stop. | BlackReef | Flash & Multimedia Forum | 4 | Jun 28th, 2007 07:04 |
| Notepad Is annoying me | Accurax | Webforumz Cafe | 21 | Mar 12th, 2007 12:18 |
| This ImageMap is annoying me! | Dapandyman | JavaScript Forum | 2 | Nov 14th, 2006 20:02 |
| Bloomin annoying gap in IE | minute44 | Web Page Design | 3 | Oct 18th, 2006 05:15 |
| very annoying problem | Rob | Classic ASP | 7 | Aug 12th, 2004 07:49 |