SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 18th, 2003, 02:54 PM
melatonin melatonin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 13 melatonin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy urgent CSS problem

Hi all,

I have a basic CSS layout here -

www.plastikwrap.co.uk/education/css

Problem no.1 - I cannot work out why the area to the right of the body of text does not contain a background image as defined in the style sheet. As you can see, there should be a vertical blue line to join up with the line at the bottom of the text but there is not.

Porblem no.2 - I can't get the body of text to dynamically resize to a certain percentage. I need it to fill the screen reasonably so the page looks good and fills the screen on any resolution. As you can see in the stylesheet i've used percentages, but they don't seem to do much.

-----------

I previously started this design using sliced images in tables, but moved over to CSS because I thought it would be easier to do and more reliable to view and manage content in.

This is a very urgent assignment that I need to complete by Thursday, so any help would be hugely appreciated.

Please feel free to dissect and alter the code in any way to demonstrate to me what I'm doing wrong.

I'm grateful for any input; i'm at my wits end with this damn thing

Thanks in advance

melatonin

Reply With Quote
  #2  
Old August 19th, 2003, 12:17 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,541 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 1 h 29 m 40 sec
Reputation Power: 597
Actually, all your widths are fixed values. I played some with % values, using 100% for #subMaster, 75% for #content, and 75% for #contentText.

I messed up your border image alignment with these values, but I leave the fixing thereoof as an exercize for the class. You will be questioned at your next recitation

I did not see any use of .contentRight.

I found this at the bottom--don't know what it is
Code:
</body>
</html>
	width: 323px;
	float: left;
	background: black;
	overflow: hidden;

You'll have to play with this, but I think this should provide a modicum of clue.

It's a pretty page.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

Ask a better question, get a better answer.

Reply With Quote
  #3  
Old August 19th, 2003, 03:40 AM
melatonin melatonin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 13 melatonin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your reply.

There is an instance of .contentRight in the HTML just below the body of text. It doesn't seem to display, at least its background doesn't. I'm pretty sure the background attribute syntax is correct, so I don't know why the background isn't displaying.

The DIV must be displaying becayse when I insert the background as an image instead of as a background, it displays. So for whatever reason, the background is not showing up.

I tried inputting your values, and they are better as they do fill the screen, but they don't resize for me (ie when the browser window is resized, they don't move to the appropriate % dimensions.)

I'm interested in why you said my values are relative (all the widths are absolute, but the height for the #content DIV and any DIVs contained in it should be relative as they need to stretch downwards as needed)

I think the problem is with the relationship between the DIVs in the #content DIV and the dimensions of the page; they are being assigned their height from the height of the container DIVs, #subMaster and #master, instead of directly from the height of the page. I don't know how to make this happen however.

Help much appreciated.

Reply With Quote
  #4  
Old August 19th, 2003, 03:41 AM
melatonin melatonin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 13 melatonin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PS the snippet at the bottom was just me swapping out part of the stylesheet while experimenting.

Reply With Quote
  #5  
Old August 19th, 2003, 03:43 AM
melatonin melatonin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 13 melatonin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i managed to get the background to work - it seems an assigned height value made it appear.

I'll reupload what i've got now -

http://www.plastikwrap.co.uk/education/css

Reply With Quote
  #6  
Old August 19th, 2003, 11:35 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,541 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 1 h 29 m 40 sec
Reputation Power: 597
Melatonin said
Quote:
I'm interested in why you said my values are relative (all the widths are absolute, but the height for the #content DIV and any DIVs contained in it should be relative as they need to stretch downwards as needed)

Actually, I said
Quote:
Actually, all your widths are fixed values. I played some with % values, using 100% for #subMaster, 75% for #content, and 75% for #contentText.

I note that you still have fixed widths. There is no way for the site the expand horizontally.

cheers,

gary

Reply With Quote
  #7  
Old August 20th, 2003, 01:40 PM
melatonin melatonin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 13 melatonin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry, I misunderstood.

It's not horizontally that i need it to stretch; only vertically.

Reply With Quote
  #8  
Old August 20th, 2003, 07:56 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,541 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 1 h 29 m 40 sec
Reputation Power: 597
Quote:
Originally posted by melatonin
Sorry, I misunderstood.

<snip>

Ah. So did I.

cheers,

gary

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > urgent CSS problem


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway