473,506 Members | 17,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fixing width of homepage

Hi

Is there a simple way to control the width of a homepage in asp.net. What I
want is the content of the homepage to have a fixed width of e.g. 20 cm
surrounded by a background. In that way I can make sure that the page looks
good no matter the size of the users monitor.

Thanks Torben
Aug 15 '06 #1
3 1095
It's not an ASP.net thing it's an HTML/CSS thing. You can do what you want
to do using tables or divs. I sugest you buy a good book on HTML and CSS if
you are strugling with a simple thing like this.

"Torben Laursen" wrote:
Hi

Is there a simple way to control the width of a homepage in asp.net. What I
want is the content of the homepage to have a fixed width of e.g. 20 cm
surrounded by a background. In that way I can make sure that the page looks
good no matter the size of the users monitor.

Thanks Torben
Aug 15 '06 #2
To add to clickons advice, the widths of pages adhere to certain
guidelines. A good short read here

http://webdesign.about.com/od/webdesign/a/aa080904.htm

Regards

John Timney (MVP)
"clickon" <cl*****@discussions.microsoft.comwrote in message
news:22**********************************@microsof t.com...
It's not an ASP.net thing it's an HTML/CSS thing. You can do what you
want
to do using tables or divs. I sugest you buy a good book on HTML and CSS
if
you are strugling with a simple thing like this.

"Torben Laursen" wrote:
>Hi

Is there a simple way to control the width of a homepage in asp.net. What
I
want is the content of the homepage to have a fixed width of e.g. 20 cm
surrounded by a background. In that way I can make sure that the page
looks
good no matter the size of the users monitor.

Thanks Torben

Aug 15 '06 #3
this not ASP.Net, it's Html as the above reply mention.
anyway the answer is Noooo & yes..
it's can't be done useing tables coz table will expand if the content is
larger then the table width you specified..

But you can use div so scroll bars will appear if content exedeed the div
width (same as iframe), i don't like this way (You can override the style of
scrollbars but only in IE6, other browsers don't understand it. it's look
ugly)

"Torben Laursen" <To****@newsgroups.nospamwrote in message
news:OZ*************@TK2MSFTNGP05.phx.gbl...
Hi

Is there a simple way to control the width of a homepage in asp.net. What
I want is the content of the homepage to have a fixed width of e.g. 20 cm
surrounded by a background. In that way I can make sure that the page
looks good no matter the size of the users monitor.

Thanks Torben

Aug 15 '06 #4

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

Similar topics

6
2017
by: Leo J. Hart IV | last post by:
Hello, I have a table: <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1"> <tr> <td...
8
3063
by: Andrew Ayre | last post by:
Hi, I have the following table layout: --------------------- | A | E | ------ |
4
5164
by: Kevin Matthews | last post by:
I have created a 3 column liquid design webpage, the left and right columns are fixed at 200 pixels, the center one re-sizes when needed, however I want the minimum size of the center div to be...
9
6691
by: Robert | last post by:
Hi, Maybe this is a simple question, but I can't seem to get it to work. Let's say I have this table: <table style="width: 300px"> <tr> <th>Header</th> <td>1</td> <td>22</td>
18
5694
by: day | last post by:
I know I've seen this issue described before, but I can't find it, or the solution now that I need it. I have some css-specified floating divs that contain images or text. The text divs have a...
18
30444
by: chimalus | last post by:
I am using a table with no column widths specified, letting the table layout manager do its thing for figuring out the column widths, and this works just fine. Now I want to make the table...
16
3649
by: Borris | last post by:
How do I collapse the width of a block element, such as DIV, to its contents? I am trying to centre a form within the page by setting its margins to auto, but the width of the form expands to...
3
1574
by: Harry | last post by:
Hi. I'm trying to get a page layout using css instead of tables, where the various sections have fixed widths even when you resize the browser window. The css below produces the correct layout...
31
3046
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
0
7220
marktang
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,...
0
7308
Oralloy
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,...
1
7023
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.