Connecting Tech Pros Worldwide Forums | Help | Site Map

align my aspx page in the middle

ALI-R
Guest
 
Posts: n/a
#1: Nov 19 '05
How do I allign all my content in aspx page in the middle of page like a lot
of websites ?

Dose it work with differnet screen resolutions?

Thanks for your help.



Ken Dopierala Jr.
Guest
 
Posts: n/a
#2: Nov 19 '05

re: align my aspx page in the middle


Hi,

Put everything inside a <p> tag:

<body...>
<form....>
<p align="center">
*Put all of your HTML here.
</p>
</form>
</body>

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"ALI-R" <newbie@microsoft.com> wrote in message
news:%23VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...[color=blue]
> How do I allign all my content in aspx page in the middle of page like a[/color]
lot[color=blue]
> of websites ?
>
> Dose it work with differnet screen resolutions?
>
> Thanks for your help.
>
>[/color]


Peter Rilling
Guest
 
Posts: n/a
#3: Nov 19 '05

re: align my aspx page in the middle


There are a couple HTML ways of doing it.

1) Use the <center/> element.
2) Use tables and define the alignment as being centered.

There are probably others but this is really just an HTML issue.

"ALI-R" <newbie@microsoft.com> wrote in message
news:#VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...[color=blue]
> How do I allign all my content in aspx page in the middle of page like a[/color]
lot[color=blue]
> of websites ?
>
> Dose it work with differnet screen resolutions?
>
> Thanks for your help.
>
>[/color]


Matt Berther
Guest
 
Posts: n/a
#4: Nov 19 '05

re: align my aspx page in the middle


Hello Ken,

<p> stands for paragraph. Clearly you meant <div>, which is a section of
content.

--
Matt Berther
http://www.mattberther.com
[color=blue]
> Hi,
>
> Put everything inside a <p> tag:
>
> <body...>
> <form....>
> <p align="center">
> *Put all of your HTML here.
> </p>
> </form>
> </body>
> Good luck! Ken.
>
> "ALI-R" <newbie@microsoft.com> wrote in message
> news:%23VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...[color=green]
>> How do I allign all my content in aspx page in the middle of page
>> like a
>>[/color]
> lot
>[color=green]
>> of websites ?
>>
>> Dose it work with differnet screen resolutions?
>>
>> Thanks for your help.
>>[/color][/color]


Ken Dopierala Jr.
Guest
 
Posts: n/a
#5: Nov 19 '05

re: align my aspx page in the middle


Hi Matt,

Nope, I mean paragraph. Set the alignment to center and everything inside
will be centered on the page. <div> will work too. <center> will make it
work. Alternatively you can set the "style" attribute of many parent
controls to center themselves on the page which will in turn center what is
inside. Then you can use the "align" attribute of the children controls to
organize them inside the parent. There a lot of ways to do this. The nice
thing about <p> is that you also have a "justify" option instead of just
left, center, and right align. Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Matt Berther" <mberther@hotmail.com> wrote in message
news:6816197632388009608412950@news.microsoft.com. ..[color=blue]
> Hello Ken,
>
> <p> stands for paragraph. Clearly you meant <div>, which is a section of
> content.
>
> --
> Matt Berther
> http://www.mattberther.com
>[color=green]
> > Hi,
> >
> > Put everything inside a <p> tag:
> >
> > <body...>
> > <form....>
> > <p align="center">
> > *Put all of your HTML here.
> > </p>
> > </form>
> > </body>
> > Good luck! Ken.
> >
> > "ALI-R" <newbie@microsoft.com> wrote in message
> > news:%23VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...[color=darkred]
> >> How do I allign all my content in aspx page in the middle of page
> >> like a
> >>[/color]
> > lot
> >[color=darkred]
> >> of websites ?
> >>
> >> Dose it work with differnet screen resolutions?
> >>
> >> Thanks for your help.
> >>[/color][/color]
>
>[/color]


ALI-R
Guest
 
Posts: n/a
#6: Nov 19 '05

re: align my aspx page in the middle


What dose "justify" option dose ,I used justify along with "<P>" ,it dosn't
center the page,but with "Center",it is exactly what I want.
Thanks to all of you for helping.
ALi
"Ken Dopierala Jr." <kdopierala2@wi.rr.com> wrote in message
news:%23$3gDB74EHA.1264@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi Matt,
>
> Nope, I mean paragraph. Set the alignment to center and everything inside
> will be centered on the page. <div> will work too. <center> will make it
> work. Alternatively you can set the "style" attribute of many parent
> controls to center themselves on the page which will in turn center what[/color]
is[color=blue]
> inside. Then you can use the "align" attribute of the children controls[/color]
to[color=blue]
> organize them inside the parent. There a lot of ways to do this. The[/color]
nice[color=blue]
> thing about <p> is that you also have a "justify" option instead of just
> left, center, and right align. Ken.
>
> --
> Ken Dopierala Jr.
> For great ASP.Net web hosting try:
> http://www.webhost4life.com/default.asp?refid=Spinlight
> If you sign up under me and need help, email me.
>
> "Matt Berther" <mberther@hotmail.com> wrote in message
> news:6816197632388009608412950@news.microsoft.com. ..[color=green]
> > Hello Ken,
> >
> > <p> stands for paragraph. Clearly you meant <div>, which is a section of
> > content.
> >
> > --
> > Matt Berther
> > http://www.mattberther.com
> >[color=darkred]
> > > Hi,
> > >
> > > Put everything inside a <p> tag:
> > >
> > > <body...>
> > > <form....>
> > > <p align="center">
> > > *Put all of your HTML here.
> > > </p>
> > > </form>
> > > </body>
> > > Good luck! Ken.
> > >
> > > "ALI-R" <newbie@microsoft.com> wrote in message
> > > news:%23VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...
> > >> How do I allign all my content in aspx page in the middle of page
> > >> like a
> > >>
> > > lot
> > >
> > >> of websites ?
> > >>
> > >> Dose it work with differnet screen resolutions?
> > >>
> > >> Thanks for your help.
> > >>[/color]
> >
> >[/color]
>
>[/color]


Matt Berther
Guest
 
Posts: n/a
#7: Nov 19 '05

re: align my aspx page in the middle


Hello Ken,

My whole point was that the <p> tag is not the correct choice. <p> stands
for paragraph and as such should be used for paragraphs of text, not nested
forms or other things like that.

A container tag like <div> is the right choice for this. Although, for that
matter, you could use <body align='center'> too.

The reason why the other tags dont have a "justify" option is because its
hard to "justify" a form or an image...

--
Matt Berther
http://www.mattberther.com
[color=blue]
> Hi Matt,
>
> Nope, I mean paragraph. Set the alignment to center and everything
> inside will be centered on the page. <div> will work too. <center>
> will make it work. Alternatively you can set the "style" attribute of
> many parent controls to center themselves on the page which will in
> turn center what is inside. Then you can use the "align" attribute of
> the children controls to organize them inside the parent. There a lot
> of ways to do this. The nice thing about <p> is that you also have a
> "justify" option instead of just left, center, and right align. Ken.
>
> "Matt Berther" <mberther@hotmail.com> wrote in message
> news:6816197632388009608412950@news.microsoft.com. ..
>[color=green]
>> Hello Ken,
>>
>> <p> stands for paragraph. Clearly you meant <div>, which is a section
>> of content.
>>
>> --
>> Matt Berther
>> http://www.mattberther.com[color=darkred]
>>> Hi,
>>>
>>> Put everything inside a <p> tag:
>>>
>>> <body...>
>>> <form....>
>>> <p align="center">
>>> *Put all of your HTML here.
>>> </p>
>>> </form>
>>> </body>
>>> Good luck! Ken.
>>> "ALI-R" <newbie@microsoft.com> wrote in message
>>> news:%23VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...
>>>> How do I allign all my content in aspx page in the middle of page
>>>> like a
>>>>
>>> lot
>>>
>>>> of websites ?
>>>>
>>>> Dose it work with differnet screen resolutions?
>>>>
>>>> Thanks for your help.
>>>>[/color][/color][/color]


Ken Dopierala Jr.
Guest
 
Posts: n/a
#8: Nov 19 '05

re: align my aspx page in the middle


Hey Matt,

There are a ton of ways to do it. <p> will work just fine. Nobody has
talked about nested forms and in an ASP.Net newsgroup you'll never see them
recommended. Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Matt Berther" <mberther@hotmail.com> wrote in message
news:6817415632388039613988653@news.microsoft.com. ..[color=blue]
> Hello Ken,
>
> My whole point was that the <p> tag is not the correct choice. <p> stands
> for paragraph and as such should be used for paragraphs of text, not[/color]
nested[color=blue]
> forms or other things like that.
>
> A container tag like <div> is the right choice for this. Although, for[/color]
that[color=blue]
> matter, you could use <body align='center'> too.
>
> The reason why the other tags dont have a "justify" option is because its
> hard to "justify" a form or an image...
>
> --
> Matt Berther
> http://www.mattberther.com
>[color=green]
> > Hi Matt,
> >
> > Nope, I mean paragraph. Set the alignment to center and everything
> > inside will be centered on the page. <div> will work too. <center>
> > will make it work. Alternatively you can set the "style" attribute of
> > many parent controls to center themselves on the page which will in
> > turn center what is inside. Then you can use the "align" attribute of
> > the children controls to organize them inside the parent. There a lot
> > of ways to do this. The nice thing about <p> is that you also have a
> > "justify" option instead of just left, center, and right align. Ken.
> >
> > "Matt Berther" <mberther@hotmail.com> wrote in message
> > news:6816197632388009608412950@news.microsoft.com. ..
> >[color=darkred]
> >> Hello Ken,
> >>
> >> <p> stands for paragraph. Clearly you meant <div>, which is a section
> >> of content.
> >>
> >> --
> >> Matt Berther
> >> http://www.mattberther.com
> >>> Hi,
> >>>
> >>> Put everything inside a <p> tag:
> >>>
> >>> <body...>
> >>> <form....>
> >>> <p align="center">
> >>> *Put all of your HTML here.
> >>> </p>
> >>> </form>
> >>> </body>
> >>> Good luck! Ken.
> >>> "ALI-R" <newbie@microsoft.com> wrote in message
> >>> news:%23VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...
> >>>> How do I allign all my content in aspx page in the middle of page
> >>>> like a
> >>>>
> >>> lot
> >>>
> >>>> of websites ?
> >>>>
> >>>> Dose it work with differnet screen resolutions?
> >>>>
> >>>> Thanks for your help.
> >>>>[/color][/color]
>
>[/color]


Ken Dopierala Jr.
Guest
 
Posts: n/a
#9: Nov 19 '05

re: align my aspx page in the middle


Hi ALi,

When you use "justify" with text inside the <p> tags the text will stretch
itself so that it is both left and right aligned. Meaning that each line,
even though they don't contain the same amout of text will be sized to be
exactly the same width. Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"ALI-R" <newbie@microsoft.com> wrote in message
news:u5wFqP74EHA.4004@tk2msftngp13.phx.gbl...[color=blue]
> What dose "justify" option dose ,I used justify along with "<P>" ,it[/color]
dosn't[color=blue]
> center the page,but with "Center",it is exactly what I want.
> Thanks to all of you for helping.
> ALi
> "Ken Dopierala Jr." <kdopierala2@wi.rr.com> wrote in message
> news:%23$3gDB74EHA.1264@TK2MSFTNGP12.phx.gbl...[color=green]
> > Hi Matt,
> >
> > Nope, I mean paragraph. Set the alignment to center and everything[/color][/color]
inside[color=blue][color=green]
> > will be centered on the page. <div> will work too. <center> will make[/color][/color]
it[color=blue][color=green]
> > work. Alternatively you can set the "style" attribute of many parent
> > controls to center themselves on the page which will in turn center what[/color]
> is[color=green]
> > inside. Then you can use the "align" attribute of the children controls[/color]
> to[color=green]
> > organize them inside the parent. There a lot of ways to do this. The[/color]
> nice[color=green]
> > thing about <p> is that you also have a "justify" option instead of just
> > left, center, and right align. Ken.
> >
> > --
> > Ken Dopierala Jr.
> > For great ASP.Net web hosting try:
> > http://www.webhost4life.com/default.asp?refid=Spinlight
> > If you sign up under me and need help, email me.
> >
> > "Matt Berther" <mberther@hotmail.com> wrote in message
> > news:6816197632388009608412950@news.microsoft.com. ..[color=darkred]
> > > Hello Ken,
> > >
> > > <p> stands for paragraph. Clearly you meant <div>, which is a section[/color][/color][/color]
of[color=blue][color=green][color=darkred]
> > > content.
> > >
> > > --
> > > Matt Berther
> > > http://www.mattberther.com
> > >
> > > > Hi,
> > > >
> > > > Put everything inside a <p> tag:
> > > >
> > > > <body...>
> > > > <form....>
> > > > <p align="center">
> > > > *Put all of your HTML here.
> > > > </p>
> > > > </form>
> > > > </body>
> > > > Good luck! Ken.
> > > >
> > > > "ALI-R" <newbie@microsoft.com> wrote in message
> > > > news:%23VJtBo54EHA.3236@TK2MSFTNGP15.phx.gbl...
> > > >> How do I allign all my content in aspx page in the middle of page
> > > >> like a
> > > >>
> > > > lot
> > > >
> > > >> of websites ?
> > > >>
> > > >> Dose it work with differnet screen resolutions?
> > > >>
> > > >> Thanks for your help.
> > > >>
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread