473,378 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

what to use rather than deprecated "align"

Whats the replacement for align="center" on a div ?

Many thanks in advance,

Aaron
Dec 27 '06 #1
4 1694
On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,
style="text-align: center"
Dec 27 '06 #2
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,

style="text-align: center"
Or, in some circumstances, give a width to the div and auto
margin left and right.

--
dorayme
Dec 27 '06 #3
"dorayme" <do************@optusnet.com.auwrote in message
news:do**********************************@news-vip.optusnet.com.au...
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
>On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,

style="text-align: center"

Or, in some circumstances, give a width to the div and auto
margin left and right.
I tried this but it did not seem to work.

Aaron
Dec 28 '06 #4
In article <4v*************@mid.individual.net>,
"Aaron Gray" <an********@gmail.comwrote:
"dorayme" <do************@optusnet.com.auwrote in message
news:do**********************************@news-vip.optusnet.com.au...
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2006-12-27, Aaron Gray <an********@gmail.comwrote:
Whats the replacement for align="center" on a div ?

Many thanks in advance,

style="text-align: center"
Or, in some circumstances, give a width to the div and auto
margin left and right.

I tried this but it did not seem to work.

Aaron
You need to distingish between the div itself and the text within
it. A div can be centered yet the text not. Did you give a URL?
Anyway, I'm off to the beach... I swear to God, right now, you
folks in the northern hemi would just swoon to see what a day it
is in Sydney right now.

--
dorayme
Dec 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Stan Brown | last post by:
http://www.acad.sunytccc.edu/instruct/sbrown/stat04/qz05_.htm A table comes near the beginning of the page. I have the <td> of row 1 column 1 styled in line with border-top:none and...
1
by: 50295 | last post by:
Hi! I'm trying to set the align property/attribute of an IFrame to center but its not working (see below). Can anyone please tell me what's going on, and if there's a work around for this? ...
7
by: ALI-R | last post by:
Hi All, I have two user controls (header and footer) ,,which I've placed in an HTML Table in a page.I set the **align="center"** in the table and the table still is on the left side of the page...
11
by: Ben Amada | last post by:
Hello, When centering a block of HTML, in the past, I've always used: <div align="center"> ... </div> However, in VS 2005, I get the following warning: "Validation (XHTML 1.0...
5
by: kj | last post by:
I've tried *many* variations of the following: <TABLE> <TR><TD STYLE='text-align: "."; font-family: Courier'>0.12</TD></TR> <TR><TD STYLE='text-align: "."; font-family: Courier'>10.1</TD></TR>...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.