Hi,
I want to center a webform to fit any screen-resolution or Browser-Width.
Webform.Width=800px. How can I center the Webform to fit any size?
Greg.
(Thanx in advance)
What I have tried before:
I optimized the output for a 800x600 resolution - means:
MainInfo-Form.width=800 and put the MainInfo-Webform inside the "mid"-frame
of a frameset defined by [cols=(left,mid,right):= 1%,800,1%] - that means
middle frame is always 800px; the rest (left and right frame) has to share
the space that's left.
I guess one cannot define a formula/function within the
frameset.cols-definition like [max(1%,0) ,800, 1%] so the "left" frame would
stop at zero (when getting into negative values) on a browser-resize. Left
frame.width=0 causes the mid-frame stop/start at 0 (or 1) px. But now when
resizing the Browser the left frame scrolls out of
screen followed by the mid-frame and both vanish in negative viewport-area
...lost in time and meaning. 5 5211
Just embed your form in an element that can be centered.
Patrice
--
"Greg Cyrus" <no****@muelltonne.de> a écrit dans le message de
news:cj*************@news.t-online.com... Hi, I want to center a webform to fit any screen-resolution or Browser-Width. Webform.Width=800px. How can I center the Webform to fit any size?
Greg. (Thanx in advance)
What I have tried before: I optimized the output for a 800x600 resolution - means: MainInfo-Form.width=800 and put the MainInfo-Webform inside the
"mid"-frame of a frameset defined by [cols=(left,mid,right):= 1%,800,1%] - that means middle frame is always 800px; the rest (left and right frame) has to share the space that's left.
I guess one cannot define a formula/function within the frameset.cols-definition like [max(1%,0) ,800, 1%] so the "left" frame
would stop at zero (when getting into negative values) on a browser-resize. Left frame.width=0 causes the mid-frame stop/start at 0 (or 1) px. But now when resizing the Browser the left frame scrolls out of screen followed by the mid-frame and both vanish in negative viewport-area ..lost in time and meaning.
> Just embed your form in an element that can be centered.
which one for exaple?
Depends how this is done to mimimize changes.
Most of the time, I would say that the form layout is done using tables. You
can then center the table by adding the appropriate style. Most other
elements should also allow to be centered...
Something like :
<table align="center">
<tr><td>Hello</td></tr>
</table>
Patrice
--
"Greg Cyrus" <no****@muelltonne.de> a écrit dans le message de
news:cj*************@news.t-online.com... Just embed your form in an element that can be centered.
which one for exaple?
Most of the time, I would say that the form layout is done using tables. You can then center the table by adding the appropriate style
I treid that.
But when I use a table I cant use GridLayout to place WebControls. Even when
I use a panel it won't go.
The Cell-Property won't even let my assign an URL as content.
Greg
GridLayout is to place controls at absolute coordinates. My personal
preference goes rather to FlowLayout... The Cell-Property won't even let my assign an URL as content.
Don't really see what you mean here.
Try an example such as : http://forums.devshed.com/archive/t-131786
that place two datagrids side by side...
Patrice
--
"Greg Cyrus" <no****@muelltonne.de> a écrit dans le message de
news:cj*************@news.t-online.com... Most of the time, I would say that the form layout is done using tables. You can then center the table by adding the appropriate style I treid that. But when I use a table I cant use GridLayout to place WebControls. Even
when I use a panel it won't go. The Cell-Property won't even let my assign an URL as content.
Greg This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ahmed Jewahar |
last post by:
Hi All,
I'm new to this forum as well as new to ASP.NET. My backgorund is ASP.
But, I'm just doing my .NET course with MS Certified training center
currently.
I have couple of questions (it...
|
by: Freek te Water |
last post by:
Hi,
Hope no-one is offended by my probably noob question...
Context:
I have a web page design, which always centres in the middle of the
screen (using a 100%*100% HTML-table). Now I also use...
|
by: Axel Dahmen |
last post by:
Hi,
I'd like to align a <div> within the center of the visual canvas. The text
within the div should be left-aligned. How can I possibly achieve this? So
far I can only align text blocks...
|
by: chaoy |
last post by:
Hi,
I created a user control as my site header. The user control consists
a custom control, cmenu. I have tried using table to center the cmenu,
and no luck. The cmenu just uses top=xxx, and...
|
by: jerry.ranch |
last post by:
Hi
I'm trying to figure out how to center forms on a page
I have a form built with some tabbed pages, and I'm playing with the
form properties, but it always displays top and left and not centered...
|
by: ashkaan57 |
last post by:
Hi,
simpe question: How do I center the page (everything between <bodyand
</body>)?
I tried using margin but it depends on the screen resolution,
text-align seems to center everything, including...
|
by: Steve Wright |
last post by:
Hi
I'm developing a webpage that needs to include a different stylesheet
depending on the screen resolution.
I know that I could read the resolution in javascript and then do some
sort of...
|
by: nasima khan |
last post by:
Hi,
i am nasima. I have got a code for setting the screen resolution of my page, but i am unable to understand. Can any one give a complete data explanation of the below code.
Sub ChangeRes(X...
|
by: raylopez99 |
last post by:
I have a logical drawing space much bigger than the viewport (the
screen) and I'd like to center the viewport (the screen) to be at the
center of the logical drawing space. After following the...
|
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,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |