| View previous topic :: View next topic |
| Author |
Message |
Koplaf
Joined: 28 May 2006 Posts: 130
|
<p class="bodytext"> Hello my name is <div class="big">mike</div> the pig </p>
Is there any reason why "the pig" should lose its styling as "bodytext" ?
Cause thats what seems to happen in IE and firefox |
| |
|
|
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Why are you using a div? use span |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
Ah ok
That solves it
Wish i knew why though heeh |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| Koplaf: <DIV> normally creates a line break, if you are just creating a font style, use <SPAN> |
| |
|
|
Jackil
Joined: 24 May 2006 Posts: 97
|
| Div is rendered as block, span is rendered as inline |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| Ohh ok |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Div is a block lev- nevermind |
| |
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| No sense in confusing him with the techie details |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
Hey!
I aint no noob :) |
| |
|
|
Jackil
Joined: 24 May 2006 Posts: 97
|
| :) |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| Ok i admit it, i'm a noob |
| |
|
|
|
|
autos06
Joined: 13 May 2006 Posts: 123 Location: New York
|
| You are if you're using <div> to apply a font setting |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
| I got another question to ask though :) |
| |
|
|
Jackil
Joined: 24 May 2006 Posts: 97
|
| If you can't understand the techie details... you really shouldn't be asking the question |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Admitting it is the first step to recovery |
| |
|
|
Koplaf
Joined: 28 May 2006 Posts: 130
|
About wrapping.... say i have some text: <p class="bodytext"> Hello my name <img src="blah"/>is mike the pig </p>
I got my image bang in the middle of the text... i want the text to wrap round the image
Like text in a newspaper column with an image sitting in it
In css... i have a <span class="captiontable"> <table> <tr> </tr> </table> </span> and in the style sheet i have .captiontable table {...} but how do i get access to the tr? |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
Lol same way
.captiontable table tr
Which is rather gay |
| |
|
|
|