Topic: Format some words of paragraph. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11000" title="Pages that link to Topic: Format some words of paragraph. (Page 1 of 1)" rel="nofollow" >Topic: Format some words of paragraph. <span class="small">(Page 1 of 1)</span>\

 
Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 06-29-2003 04:44

Hi, guys. How are you?
Well, I am trying to format some words inside of the paragraph.
I want to only a couple of texts bigger than other words.

Firstly I used <div> tag to do it like below:

code:
<p>Hello, this is <div style="font-size: 19px;">hiroki</div>! How are you?</p>



But when I looked at the result, I got something like:

code:
Hello, this is
hiroki
! How are you?



I wanted to make it same line or at least looking tidy.
So I changed <div> to < b>.

Now it is fine. But I just wonder if I can do same sort of thing using different tag?
Normaly how do you do that?

Now my code is like:

code:
HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloGoodEvening.[b]<b style="font-size: 19px;">[/b]How&nbsp;are&nbsp;you?[b]</b>[/b]&nbsp;HelloHelloHelloHelloHelloHHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloGoodEvening.
HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHell



Hiroki Kozai

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 06-29-2003 05:35

A <div> is a block level element.

This means that it will create an entire block devoted to whatever is contained in it.

A <span> is the same thing as a <div>, except it is an inline element. This means that it will treat it's contents whatever way they normally would be, aside from any styles yo umay attribute to the <span>.

So, use a <span> in place of a <div> and you'll be all set.

=)



[This message has been edited by DL-44 (edited 06-29-2003).]

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 06-29-2003 06:02

Hi, DL. Many thanks.
Yes, div is block level element, isn't it?
I need to refresh my memory about CSS.
Many thanks.
Cya.



Hiroki Kozai



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu