David Wrote:
 
>Well that line break is using non-HTML compatable XHTML syntax, while
>the image is using HTML 3.2 syntax (the alt attribute is missing, it
>became required in HTML 4.x).
 
I know this :). The example that I knocked up was just an illustration to show 
what U was trying to do. I also missed out the closing slash. Sorry for not 
making that clear.
 
Thanks for your other pointers though, ive found a different solution as your 
right about what happens when CSS is not available.
 
Stu.

________________________________

From: [EMAIL PROTECTED] on behalf of David Dorward
Sent: Fri 01/07/2005 12:41
To: css-d@lists.css-discuss.org
Subject: [css-d] Re: force an image to display on the next line



On 7/1/05, stu <[EMAIL PROTECTED]> wrote:
> Does anyone know how to force an image to display on the next line?

> So instead of this:
> text here
> <br/>
> <img src="blah.gif">

Well that line break is using non-HTML compatable XHTML syntax, while
the image is using HTML 3.2 syntax (the alt attribute is missing, it
became required in HTML 4.x).

> I could just have:
> text here<img src="blah.gif">
> And it does the same as the first example.

Is that such a good idea? What happens when the CSS isn't available
(and possibly the alt text is displayed instead) - would it still make
sense?

> Anyone have any ideas? I tried to change the image to display: block, but it
> didnt do anything.

display: block should do what you want (at least for that code - if
there is floating going on that you aren't showing us, then this would
be different and you need to play with clear too).

--
David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to