How to Center Align a Panel.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Dear All,
Can u tell me how to center align a div (Panel) in Asp.Net 2.0.
If we use align="center" then it will be converted to text-align:center
which will align all the content of the div's object but not the div
itself. Also this is only valid in IE in case of mozilla even that
don't work. If we use <center></center> then it will work in both the
browsers but its a depreciated tag. So could any 1 tell me the best way
of that.

thanks in advance.
Deepak.

.



Relevant Pages

  • Re: display:inline block elements
    ... CES wrote: ... Within the row their is a <Div> that I want to align to the Right hand side of the <Div ... Align is not a valid attribute of the Div element... ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: display:inline block elements
    ... I was hoping that someone might be able to help me with a few questions on Aligning Block Elements properly... ... Within the row their is a <Div> that I want to align to the Right hand side of the <Div ... Align is not a valid attribute of the Div element... ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Vertical align of image in a div tag
    ... that I can align things correctly. ... The li1 tag is supposed to align ... Anyone know how to align the image vertically in the middle of the div ...
    (alt.html)
  • Re: display:inline block elements
    ... On 2006-07-09, CES wrote: ... their is a <Div> that I want to align to the Right hand side of the <Div ... Align is not a valid attribute of the Div element... ...
    (comp.infosystems.www.authoring.stylesheets)
  • RE: images and text not aligning
    ... you are confusing how the align works with containers and elements. ... div an align defines how its content is aligned. ... it specifies how its aligned within the text flow (baseline). ...
    (microsoft.public.dotnet.framework.aspnet)