473,395 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Resizing Page Contents in CSS

I'm creating a new look for my companies website and I'm playing with CSS. A problem I have encountered is that when a user resizes their browser the CSS tags and content squeeze to fit in the resized window. Is there any way to stop this? I'm setting width to 100% but that is to make sure the page is fully fit to the users browser. Is there anyway to set the CSS so that the width is still 100% but the page (when resized) has scroll bars?
Nov 13 '06 #1
4 2200
drhowarddrfine
7,435 Expert 4TB
Without looking at your particular code, you can try adding overflow:scroll; to the css.
Nov 13 '06 #2
Without looking at your particular code, you can try adding overflow:scroll; to the css.


Thanks. It didnt work. I've given up on doing the entire layout with CSS now, I'm using tables to set the page, setting it to about 800 width to fit smaller screens and on larger screens it'll like like a slim site.
Nov 13 '06 #3
steven
143 100+
Thanks. It didnt work. I've given up on doing the entire layout with CSS now, I'm using tables to set the page, setting it to about 800 width to fit smaller screens and on larger screens it'll like like a slim site.
You could just do the same thing with divs in css. Having the width of ANYTHING set to 100% is going to allow it to do just that. Be 100% of the window. This will happen with tables, divs, just about any tag you give that property.

You can set your divs to have a fixed width. Alternatively, you can use the min-width CSS property, which will make the page span as wide as the users browser, but will not resize below the value set. EG, min-width: 800px; will not allow the contents to be resized to less than 800pixels.

Using tables for layout is bad practice.
Nov 14 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: H.A.P | last post by:
hi I'm trying to change the size of an iframe. In the following page, how should I do it? <html> <head> <script language="javascript"> function resize_frm() {
0
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
12
by: WJ | last post by:
What controls needed to cause the entire page moves along with the "resizing" of the web browser (left/right)? Example: Click here http://www.google.com, when Google main page is displayed in...
0
by: Terry | last post by:
The link below is the beginning of my home page recreated using css. It is pretty much one main div with a border (the green border) that contains three columns that float left. How do I make the...
3
by: PCgeek | last post by:
sorry moved this over to javascript forum, didn't mean to post 2x! Hi guys, I'm trying to put the finishing touches on my website and could really use some help on this particular issue. My page...
0
by: sherifffruitfly | last post by:
I've tried googling, but couldn't find anything. Basically, I want to see the cell's data more-exposed and less-exposed *while* I'm resizing the column. Is this even possible? Would I have to...
6
by: gilbert.george | last post by:
Hi, I am setting the width of a textarea using the style.width to ensure the textarea is exactly the right width. I want to set the height/rows of the textarea depending on it's contents (so...
1
by: sasparag | last post by:
Hi Friends, I want to increase the height of my IFRAME without refreshing its contents. presently i am using following code but it refreshes the contents of IFRAME can any one suggest me a better...
4
by: qhimq | last post by:
hi I built a program on windows 2000 professional and it works flawlessly to the eye. I can resize the window and all of it's contents scales correctly. I moved it onto windows XP with a setting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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,...
0
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...
0
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...

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.