?
Solved

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

Posted on 1998-07-19
2
Medium Priority
?
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
stevemiller earned 200 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

762 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