Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-11-2009
Member
 
Join Date: Apr 2009
Posts: 79
Horizontal center layout in CSS

What is the html code to create Horizontal center layout in CSS and what is the syntax to declare center. I want to display some text in center on html page.
Reply With Quote
  #2  
Old 04-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Horizontal center layout in CSS

The <center> tag is used to center text in html . The <center> tag is supported in all major browsers. However, it is deprecated and should be avoided! CENTER is defined as equivalent to DIV with ALIGN=CENTER. CENTER was introduced by Netscape before they added support for the DIV element. Example : Center text in an HTML page : <center> Text will be display in center</center>
Reply With Quote
  #3  
Old 04-11-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: Horizontal center layout in CSS

<CENTER ...> it display the text in center <CENTER ...> is exactly equivalent to the text which is display <DIV ALIGN=CENTER>. <CENTER ...> to display text Use <DIV ALIGN=CENTER> instead. <DIV ALIGN=CENTER> HTML center tag </DIV>
Reply With Quote
  #4  
Old 04-11-2009
Member
 
Join Date: Dec 2008
Posts: 177
Re: Horizontal center layout in CSS

Code:
<P> (breakes line)
This is a normal paragraph which usually means left alignment and the next text display in next line.
</P>
<CENTER>
<P>
This is text which will be centered.
</P>
<P>
This is a longer text paragraph which will be centered.The center element was deprecated in HTML 4.01,It is so long that line breaks will most probably occur.
</P>
</CENTER>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Horizontal center layout in CSS"
Thread Thread Starter Forum Replies Last Post
after installing Windows 8.1 preview, keyboard Layout automatically switches to US-layout Ebadaah Operating Systems 3 31-07-2013 11:26 AM
How to place PS3, Vertical or Horizontal Izna Portable Devices 5 10-06-2011 10:31 AM
Horizontal black lines on my DLP TV Marjorie Portable Devices 5 28-09-2010 06:41 AM
How to create horizontal menu using CSS Efigenio Software Development 6 29-03-2010 08:40 PM
Horizontal Scrolling Div in CSS Zoe Software Development 3 02-07-2009 11:55 PM


All times are GMT +5.5. The time now is 03:12 PM.