473,671 Members | 2,287 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 2204
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********@hotm ail.com
http://www.nathansokalski.com/

"rodchar" <ro*****@discus sions.microsoft .comwrote in message
news:0B******** *************** ***********@mic rosoft.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********@hot mail.comwrote in message
news:ua******** ******@TK2MSFTN GP03.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********@hotm ail.com
http://www.nathansokalski.com/

"rodchar" <ro*****@discus sions.microsoft .comwrote in message
news:0B******** *************** ***********@mic rosoft.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
12191
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
2055
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 | Opt. 2 | Opt. 3 | +----------+----------+----------+ When the values change (e.g. because the user switches to edit mode where
1
1599
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
1170
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 cell.Width = Unit.Parse("*")? I am aware of the workarounds. Rather I am looking for an answer to this specific question. -- John Bankhead
1
9751
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 the page_load event. Sub Page_Load(......) Table1.Width = "100%" 'this is not the right class since it requires a unit class to set. But how would I tell the unit class that it is to be
6
2200
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 their content but I don't want to arbitrarily set their widths to a set measurement or percentage. However if I don't specify a width it defaults to 100% of the page width. Is there any way I can set the width to automatically shrink to that of the...
2
3924
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 contains a listbox and the second column contains some buttons. I am trying to display it such that if the listbox is empty it will be at least 100px wide, but if there is content in the box I want it to expand dynamically such that if the...
2
1951
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
1875
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 give it a width, it will resize all right. But then it will appear at a random width initially, which is pretty ugly in the page that I work with. Thank you, kmobarra
0
8476
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8917
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8821
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6229
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5696
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4225
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.