Simple but so annoying

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Mar 8th, 2007, 17:48
New Member
Join Date: Oct 2006
Location: Bolton
Age: 24
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Mar 8th, 2007, 18:53
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Mar 8th, 2007, 19:10
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Mar 8th, 2007, 20:59
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Mar 8th, 2007, 21:19
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Mar 8th, 2007, 21:49
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Mar 9th, 2007, 00:04
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple but so annoying

fershizzle
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Mar 9th, 2007, 11:48
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple but so annoying

Not sure if you've figured it out yet but ... here's some code

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-CA" xml:lang="EN-CA">

<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    #wrap {
        width: 500px;
    }
    
    .fleft {
        float: left;
        width: 200px;
    }
    
    .fright {
        float: right;
        width: 200px;
    }
    </style>
    
</head>

<body>
<div id="wrap">
    <span class="fleft">Hello</span>
    <span class="fright">Hello</span>
</div>
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Mar 9th, 2007, 12:42
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Simple but so annoying

Quote:
Originally Posted by daygon View Post
fershizzle
LOL
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Mar 10th, 2007, 07:15
New Member
Join Date: Oct 2006
Location: Bolton
Age: 24
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Mar 10th, 2007, 15:36
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Simple but so annoying

Quote:
Originally Posted by Sean J View Post
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
we're all saying it makes no sense because you could simply do this:
<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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Mar 11th, 2007, 00:34
Most Reputable Member
Join Date: May 2006
Location: North West, UK
Age: 22
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Simple but so annoying

Put the link within the paragraph tags as spinal007 said don't put them outside it's pointless.

Pete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
paragraph problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 16:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42