473,569 Members | 2,436 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 1102
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*****@discus sions.microsoft .comwrote in message
news:22******** *************** ***********@mic rosoft.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****@newsgro ups.nospamwrote in message
news:OZ******** *****@TK2MSFTNG P05.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
2018
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 width="10%">&nbsp;</td> <td width="10%" bgcolor="#C0C0C0">xa</td>
8
3066
by: Andrew Ayre | last post by:
Hi, I have the following table layout: --------------------- | A | E | ------ |
4
5168
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 350, and so therefore the minimum size of the page would be 750px, no matter what. At the minute, if i re-size my screen lower than 400, the 2 side...
9
6696
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
5705
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 background color and text color that differ from the rest of the page, and I'd like them to be positioned from the right edge of the rightmost image...
18
30464
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 dynamic. I have added a filtering mechanism (in javascript) that can be used to hide unneeded rows. However, each time I hide or show rows, the column...
16
3658
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 fill the page (as per specs).
3
1577
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 but I cannot get the center id=txt section to fix at 700px. Does anyone know how I can achieve this?
31
3072
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 like the middle column just to use up that space instead. Any way this is possible? Thanks for your help, it is highly appreciated!
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8138
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5223
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
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 we have to send another system
1
1228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.