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 September 24th, 2003, 06:31 PM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
CSS not working right. Could someone take a look?

Hi all,

I have a site which is driving me quite mad.

http://www.bartlett-family.net/jonathan

You will need a username and password:

username:
password:

Can someone look at it in IE, not NS or Opera (you'll see why in a minute)? I'd appreciate it. I attached my CSS file to this post to look at. Basically, the style is how i want it, but in the "main" area, the image loading is not loading all the way. It actually seems to only load as far as any text, etc go! Can someone tell me why that is? I can't figure it out to save my life! What I would like is to have the "h2" title, the paragraph underneath, then finally, the image. What can I do in the CSS to make that happen? I'm reading a CSS book to help, but haven't found out how yet.

Also, I have noticed that this site doesn't fit perfectly on smaller monitors. I thought that it would based on the CSS. Can someone tell me why it doesn't all fit on one screen. It all fits on the 21" monitor I work on, but on my wife's 15" LCD, it has a vertical scrollbar.

Now, as far as NS and Opera. If you do look at it in either of those browsers, you'll see that it looks AWFUL! In NS, the image loads similarly to IE, but there are no "nav" areas on the sides like the CSS calls for. In addition, all 8 links are on the left, not 4 on each side. In Opera, the H2 is not centered and neither is the paragraph. The image does not show up at all. The links are correct with 4 on each side, but the "nav" areas (the blue) only goes down about 2 inches!

I know that there are inconsistencies between browsers regarding CSS, but is it REALLY this severe? Internet Explorer will give you the best look at the site, unfortunately.

Can someone give me a hand? It's quite important that I get this working. It is even more important that I learn it because it has proven to be quite frustrating! Thanks a million, everyone!

Chris
Attached Files
File Type: txt jonathan.css.txt (2.0 KB, 133 views)
__________________
Pop, pop, fizz, fizz, oh what a relief it is!

Last edited by cjwsb : September 25th, 2003 at 05:34 PM.

Reply With Quote
  #2  
Old September 24th, 2003, 06:56 PM
Phil_work Phil_work is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Canberra, Australia
Posts: 317 Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 42 m 18 sec
Reputation Power: 7
because your image is a background image it doesn't govern how big the element will be, as it would if you inserted the image into the page via <img src

way to get around it, add a height to your main class

eg:
height: 100%;

That should do the trick....

Reply With Quote
  #3  
Old September 24th, 2003, 07:47 PM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
GREAT! That did it! Well, sorta...

Thank you so much, Phil. It looks great on my 21" monitor, as well as on 17" and 18" LCD panels I have tried it on! Now, could I ask you something else? The image and the text from the paragraph overlap on my wife's 15" LCD panel. I tried changing

Code:
background-position: center;

to
Code:
background-position: bottom;

which helped a little. There is now less overlap on her monitor, but there is, of course, a larger area where their is empty space on the larger monitors. It still looks fine, though on the bigger ones. Is there a way to get around this?

Also, can I make the page be the same size no matter what size monitor it is being viewed with? I mean, on my 21" monitor, let's say, it fell about 3 inches short on all sides, but it would fit perfectly on a 17" monitor. Know what I mean? I hope I am explaining it ok. Actually, Google is a good example of what I mean. The home Google page is small and will definitely fit onto any size monitor! I would like to do something similar to that, can I?

Oh, before I forget... On the right side of the page, in the right "navbar" area, you'll notice that the links are on the left side of the right navbar. Can I move those to the right side of the navbar, so that they are along the right side of the whole page?

And finally, what about the browser inconsistencies with NS and Opera? Are those two browsers really this BAD at CSS? They look terrible on this page, and i don't think this CSS is doing anything outstanding, do you?

Thanks a million, Phil!!! I appreciate your help so far, and thank you in advance for any further assistance.

Chris

Reply With Quote
  #4  
Old September 24th, 2003, 08:14 PM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
Correction... The SIZE of the monitor does not matter. It's the resolution of the monitor. Anything 1024 x 768 and under is resulting in the text and image overlapping, even on my 21" monitor. How can I design the site so that this doesn't happen? I'm sure there will be people visiting who use lower resolutions! I natively use 1280 x 1024. Can this be done? Thanks!

Chris

Reply With Quote
  #5  
Old September 24th, 2003, 11:26 PM
kolatracks kolatracks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: UK
Posts: 311 kolatracks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Indeed the text overlaps the image because of the resolution not screen size.

As for a fix. Well really you can't do anything other than either make the image smaller or place the image on the page in another way.

IMHO I'd go for making the image smaller AND placing the image in the document itself rather than as a backround.

Also while I was there I noticed the page is not XHTML compliant. I suggest you either make the document HTML or fix the 56 XHTML errors.

Reply With Quote
  #6  
Old September 25th, 2003, 12:53 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,526 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 1 Day 19 h 47 m 28 sec
Reputation Power: 584
You might check Bluerobot for ideas on layout. Specifically, the reference covers a 3-column layout such as what you're working toward.

Quote:
And finally, what about the browser inconsistencies with NS and Opera? Are those two browsers really this BAD at CSS? They look terrible on this page, and i don't think this CSS is doing anything outstanding, do you?

Actually, Moz/NS6+ and Opera are very good. It's IE that sucks.

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
  #7  
Old September 25th, 2003, 06:41 AM
WorldBuilder's Avatar
WorldBuilder WorldBuilder is offline
Big Daddy
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Boston
Posts: 1,469 WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level)WorldBuilder User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 4 h 51 m 46 sec
Reputation Power: 20
Send a message via AIM to WorldBuilder
Thanks for the suggestions, guys. I will be sure to look into everything you suggest!

Quote:
Actually, Moz/NS6+ and Opera are very good. It's IE that sucks.


I'm NOT even remotely an advocate for IE (or MS in general), but how can that be true? IE is the only one that is working even remotely correctly! And, thoughout my short history of working with web pages, it has thus far proven to be the most stable and useable with CSS and javascript. The other browsers just don't seem to support anything I do! Weird... I'm just speaking from my experience.

Thanks guys!

Chris

Reply With Quote
  #8  
Old September 25th, 2003, 07:04 AM
icy_polecat's Avatar
icy_polecat icy_polecat is offline
Senior Polecat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Jersey (the original version)
Posts: 210 icy_polecat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 57 sec
Reputation Power: 6
Send a message via Yahoo to icy_polecat
it all comes down to standards and how they are implemented.

Many people believe that Mozilla is the best browser in the world because it renders pages as they should appear according to W3C guidelines.

IE is more forgiving than Mozilla but doesn't render everything correctly.

Netscape v 7 is Mozilla (well a version of), Netscape 6 isn't that bad at standards but you'll havea few issues. Netscape 4 ... forget it! Really buggy css support that can actually crash the browser if you're not careful!

Opera 6 & 7 both offer reasonable standards support.

So as a rule of thumb - if it looks right in Mozilla it will look right in IE 5.5 or 6 and Opera 7 - testing your pages in a standards compliant browser will make your life a heck of a lot easier.
__________________
Quidquid latine dictum sit, altum viditur.

http://www.XSet.co.uk

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS not working right. Could someone take a look?


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