Solved

When do i use <DIV ALIGN=CENTER> and <CENTER>

Posted on 1998-07-19
2
144 Views
Last Modified: 2010-04-09
HI,
 I am curious to find out when i am supposed to use the <DIV align=center> and <CENTER>. I read that <CENTER> is a netscape specific tag.  I also found out that Frontpage puts:

<div align=center><center>testing</center></div>

when you want to center something.  My thinking is that "maybe" the earlier versions of browsers ie. Explorer 3.0 may not understand netscapes <center> command and only understand <div>, but Netscape 1.0 probably only understands <center>.  So Microsoft, being nice guys (grin) as they are, they decided to keep full compatibility by putting both tags together.  Beats me.
 
If i am expecting Netscape 2.0-Netscape 4.5 viewers and Internet Explorer 3.0 - 4.0 viewers mostly, which is the best tag to use for center or is it WISE to just leave both in.  Take into consideration other not so popular browsers that may visit my site.  
 
Thanks
0
Comment
Question by:mirror
2 Comments
 
LVL 5

Accepted Solution

by:
stevemiller earned 50 total points
ID: 1844735
Both browsers understand these commands.
 
<CENTER> object info  </CENTER>  is used to center anything in between the markers on the page.  anything like a link, image, text, or a table can be put in the middle....

<DIV> is a Logical Division.  This element is used with style sheet attributes to designate sections of text as being of a certain style. Netscape Navigator 3 implements the <DIV> element to work as the <P> tag.

If you want to get a really kool listing of all commands and which browsers they are compatible with, check out this link:

http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm

They have everything---


steve

0
 

Author Comment

by:mirror
ID: 1844736
Thanks a million steve
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now