Click here to get back home


or
with old browsers...

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date

or
Summercoolness 06-19-2007
Posted by Summercoolness on June 19, 2007, 1:12 am
Please log in for more thread options


so i am starting to use more of <br /> and <div style="clear: both" /
>...
which is the XHTML style...

now, won't those actually confuse the old browsers? for example,
will the old browser treat the "div" as not closing, and so everything
after the div will be treated as part of that div?


Posted by Jukka K. Korpela on June 19, 2007, 2:19 am
Please log in for more thread options


Scripsit Summercoolness@gmail.com:

> so i am starting to use more of <br /> and <div style="clear: both" /
>> ...
> which is the XHTML style...

Are trolling, or just clueless? You posted the same question to
c.i.w.a.stylesheets, with a different Subject and different wording, but
exhibiting the same ignorance-based willingness to use XHTML. You apparently
haven't read this group even for a few days; otherwise you wouldn't think
about using XHTML style.

Please learn to post to Usenet before starting to compose your next message:
http://www.cs.tut.fi/~jkorpela/usenet/dont.html

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Posted by Jim Carlock on June 19, 2007, 2:26 am
Please log in for more thread options


: so i am starting to use more of <br /> and <div style="clear:both"/>...
: which is the XHTML style...

<div style="clear:both;margin:0px auto;width:200px;border:1px solid
#0000CC;text-align:center;line-height:1.5em;padding:0.2em;">Some
Content</div>

As far as I know <div> always has a closing tag. I've NEVER
seen <div/> until your post here. Even HTML requires a closing
tag.

Also note that <div> tags may default to clear:both; so that may
not be needed. Most browsers insert a line-break before the
starting <div> and after the completing </div> tags.

http://www.w3schools.com/tags/
http://www.w3schools.com/tags/tag_div.asp

--
Jim Carlock



Posted by David Dorward on June 19, 2007, 2:54 am
Please log in for more thread options


> As far as I know <div> always has a closing tag. I've NEVER
> seen <div/> until your post here.

It is fine in (true) XHTML (for which the previously mentioned 'older
browsers' will go 'Eh? Don't recognise this. You wanna save it to your
disk?'

> Even HTML requires a closing
> tag.

The above code sample has a closing tag.

> Also note that <div> tags

Elements, not tags

> may default to clear:both;

They don't

> http://www.w3schools.com/tags/http://www.w3schools.com/tags/tag_div.asp

Avoid w3schools. They provide more errors per paragraph then any other
HTML tutorial site.


--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/


Posted by Andy Dingley on June 19, 2007, 6:25 am
Please log in for more thread options


On 19 Jun, 06:12, Summercooln...@gmail.com wrote:
> so i am starting to use more of <br /> and <div style="clear: both" />...
>
> which is the XHTML style...
>
> now, won't those actually confuse the old browsers?

Who knows? Who can know how many obscure old browsers your code might
meet on its travels.

So go read the XHTML Appendix C notes on HTML compatibility. They'll
tell you.


Similar ThreadsPosted
Re: DTD in browsers May 3, 2006, 4:24 pm
Re: DTD in browsers May 4, 2006, 3:30 am
" last word 3 browsers July 8, 2005, 7:51 am
What browsers are using to test? February 20, 2006, 9:50 am
Dynamic Menu for all browsers October 7, 2004, 2:10 pm
Different browsers render differently October 26, 2004, 4:50 pm
Controlling web browsers with META January 22, 2005, 12:43 am
XHTML authoring and browsers November 26, 2005, 1:48 pm
Inconsistent Display in Different Browsers December 7, 2005, 7:06 pm
Help! new site is crashing IE browsers! November 17, 2006, 10:38 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap