473,513 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

minimum width setting

hey all,
you know how you can set the with of a textbox to say something like 50% and
then as you change the size of the browser the textbox changes accordingly.
is there a way that if the browser is resized too small that it stops from
adjusting and just puts scrollbars?

thanks,
rodchar
Oct 6 '08 #1
2 2196
There are the CSS properties min-width, min-height, max-width, and
max-height, but unfortunately very few browsers currently support them, so I
would not suggest using them. I was honestly never a fan of using
percentages for specifying width and height unless the container (such as a
div or td, for example) has a fixed width or height, but I'm also a
developer, not a designer, so my opinion probably doesn't mean as much.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:0B**********************************@microsof t.com...
hey all,
you know how you can set the with of a textbox to say something like 50%
and
then as you change the size of the browser the textbox changes
accordingly.
is there a way that if the browser is resized too small that it stops from
adjusting and just puts scrollbars?

thanks,
rodchar

Oct 6 '08 #2
rodchar
check out this site:
http://www.cssplay.co.uk/
There are a lot of re useable css templates.
It works very well
Patrick

"Nathan Sokalski" <nj********@hotmail.comwrote in message
news:ua**************@TK2MSFTNGP03.phx.gbl...
There are the CSS properties min-width, min-height, max-width, and
max-height, but unfortunately very few browsers currently support them, so
I would not suggest using them. I was honestly never a fan of using
percentages for specifying width and height unless the container (such as
a div or td, for example) has a fixed width or height, but I'm also a
developer, not a designer, so my opinion probably doesn't mean as much.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:0B**********************************@microsof t.com...
>hey all,
you know how you can set the with of a textbox to say something like 50%
and
then as you change the size of the browser the textbox changes
accordingly.
is there a way that if the browser is resized too small that it stops
from
adjusting and just puts scrollbars?

thanks,
rodchar


Oct 7 '08 #3

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

Similar topics

3
12176
by: iinet | last post by:
How can i set in my css a min width for input elements, but leave the max size dynamic? Ben
1
2050
by: André Hänsel | last post by:
Hi! In a web application I'm displaying a table with values from a data record. Above the values I have a menu with options in a table row: +----------+----------+----------+ + Opt. 1 | ...
1
1592
by: Wilfried Mestdagh | last post by:
Hi, If you doubleclick on a dbgrid title separator the column automticly resize to his minumum width. How to do this in code ? -- rgds, Wilfried http://www.mestdagh.biz
0
1162
by: John Bankhead | last post by:
In HTML, if I want to set the width of my last column to fill out the page then I can set Width=*. Is there a way to do this using Unit.Parse or Unit.Percentage or the like? In the vein of ...
1
9713
by: Don Nablo | last post by:
With an asp table I can do this to get it to be 100% of screen. <asp:table id="Table1" runat="server" Width="100%"> But I can't find out how to set it via the properties of the table during...
6
2193
by: PlexusMaldon | last post by:
Hi, I have a question about setting the widths of divs with CSS that I have a feeling will be answered simply with a "no". I have some divs that I want to have conform to the right hand side of...
2
3909
by: cshaw | last post by:
Hello Everyone, I am having problems with a listbox control. I have a page with a couple of labels and drop-down lists at the top, and then below there is a table with two columns, the first column...
2
1944
by: Jameson | last post by:
Hi, Dumb question for you: Is there a quick and easy way to ensure a string has a minimum width using format specifier? Should I just write if myString.Length < 8 then myString.PadLeft (...
1
1871
by: kmobarra | last post by:
Hi everyone. How can I assign an initial width to a "DIV" or "select box"? I want my select box to appear using this width, but expand if its contents are wider than the given with. If I don't...
0
7257
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
7379
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
7098
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
7521
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...
0
5682
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,...
1
5084
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...
0
4745
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
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
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 ...

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.