Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-13-2005, 07:45 AM   #1
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
css help...

Here is the template for my new site, as I have it right now: http://www.ccic.ohio-state.edu/ccicnew/template2.asp

What I want it to do, is when you make the window smaller, to stop shrinking after a certain point(1024x786), and just start using scrollbars. Right now it will shrinks until its unreadable and all the formatting is gone.

Here is the css for the layout:

Code:
#threecolumn
{
	position: relative;
	width: 95%;
	background: white;

}


#threecolumn #smallcolumn
{
     position: absolute;
     right: 1%;
     width: 24%;
     background: white;

}
	
#threecolumn #maincolumn
{
     margin: 0 34% 0 26%;
     background: white;
     width: 47%;

}
	
#threecolumn #left
{
     position: absolute;
     width: 24%;
     background: white;
     margin-top: 0px;

}
Any ideas?
GSXdan is offline   Reply With Quote
Old 07-13-2005, 09:42 AM   #2
Member (6 bit)
 
Deitel's Avatar
 
Join Date: Apr 2004
Location: Malta
Posts: 41
I don't think CSS can control window sizes. It's more of a javascript kind of problem. Not sure if it can be though.
Deitel is offline   Reply With Quote
Old 07-13-2005, 10:36 AM   #3
Resident Intel Fanboy
 
Redfallon's Avatar
 
Join Date: Mar 2004
Location: Cincinnati
Posts: 1,669
I opened your site, decreased the size of the window and it didn't shrink anything. It added scroll bars.
__________________

...wide is the gate, and broad is the way, that leadeth to destruction, and many there be which go in thereat...
Redfallon is offline   Reply With Quote
Old 07-13-2005, 10:54 AM   #4
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
The only issue I noticed was the text hiding behind the image (both IE and firefox)
Statica is offline   Reply With Quote
Old 07-13-2005, 12:10 PM   #5
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
Quote:
Originally Posted by Redfallon
I opened your site, decreased the size of the window and it didn't shrink anything. It added scroll bars.

What browser?

Neither IE or FF add scrollbars for me
GSXdan is offline   Reply With Quote
Old 07-13-2005, 02:37 PM   #6
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
If you use tables, that would keep the page from shrinking to far.

As for your CSS code, items should be seperated with a comma, like this:
PHP Code:
#threecolumn, #smallcolumn 
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 07-13-2005, 02:46 PM   #7
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Quote:
Originally Posted by GSXdan
What browser?

Neither IE or FF add scrollbars for me
Both add scroll bars for me.
Statica is offline   Reply With Quote
Old 07-14-2005, 07:54 AM   #8
Member (6 bit)
 
Deitel's Avatar
 
Join Date: Apr 2004
Location: Malta
Posts: 41
Even me.

The text is also hiding behind the image.
Deitel is offline   Reply With Quote
Old 07-14-2005, 10:41 AM   #9
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
Ok, I got that problem fixed, I dont think i was being very clear with what i wanted here. It is now perfect, but only in FF. IE is still throwing a fit trying to make it look right. Any idea what needs to be done to make it display correctly in IE?

http://www.ccic.ohio-state.edu/ccicnew/template.asp
GSXdan is offline   Reply With Quote
Old 07-14-2005, 11:35 AM   #10
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
I would consider rethinking the page coding. I am getting horizontal scrolling at 1280 in IE and up to around 1150 pixels in FF. The layout is simply enough where you could code it quite easy without your extensive use of stylesheets. You are importing 8 different stylesheet. What I often do is to link to one main stylesheet and then import any sub-stylesheets if necessary. Just too much other funkiness to it. For instance, in FF if I shrink down to say 800x600, I have horizontal scrolling and I scroll over and can see 'This just in'. In IE though, when I shrink I have horizontal scrolling for no reason as the 'This just in' has dropped down to the next line. Horizontal scrolling should be avoided at 800x600 IMO.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 07-14-2005, 01:40 PM   #11
Member (10 bit)
 
GSXdan's Avatar
 
Join Date: Jun 2002
Location: P-burg, Ohio, USA
Posts: 555
Send a message via AIM to GSXdan
If I wrote all the CSS, i would be able to re-think it and consolidate it, but I didnt. OSU is on this "Identity" program right now, it wants all of its departments to adhere to its styles so we all look the same. So I started with one of their provided templates( http://www.osu.edu/resources/example...olumnfloat.php ), which doesnt even work properly in the first place. So basically I am trying to make ours a little bit unique, and in the process fix it for them lol...

I cant seem to get rid of that horizontal scrollbar at all tho.. even by force(ie. overflow-x: hidden). Maybe im not putting it in the correct stylesheet. Who knows, its taken me a few tries to get anything working with this template, im sure ill figure it out soon enough.
GSXdan is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:53 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2