CSS Relative <DIV> Size Problem

This is a discussion on "CSS Relative <DIV> Size Problem" within the Web Page Design section. This forum, and the thread "CSS Relative <DIV> Size Problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 29th, 2007, 07:53
New Member
Join Date: Nov 2007
Location: Telford
Age: 18
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question CSS Relative <DIV> Size Problem

Hello,

Having a bit of an issue with my website I've recently just completed designing.

The problem I'm having is to with my layout DIVs. I have sized them all relativly and poisitoned them absoloutly.

The sizes are all correct and I am happy with the proportions, however when I load the page initially in IE, the DIVs scale incorreclty (always too large), until I adjust the browser size window and everything returns to normal.

I remember reaidng something about this when I was developing my site, but recentyl have been unable to find the reference to it.

I'm thinking it may be an IE problem because we all know how great IE is. This problem has been occurring in IE 6. I am going to test it later in 7 but one of the aims of my site is for it to be compatbile in all browsers.

Any help would be appreciated guys.


Website URL: www.cainphotography.co.uk

Style Sheet: www.cainphotography.co.uk/style.css

Email: a_cain@tiscali.co.uk


For clairty I have attached a screenshot of the problem:

Screenshot.jpg


Notice the size of the icons on the menu bar and the "Cain Photography" logo at the top. It should scale to fit between the top of the browser window and the black line at the top. Additionally it should not be pixalated.

Cheers chaps.



Andy

Last edited by karinne; Nov 29th, 2007 at 12:33. Reason: Please attach BIG images.
Reply With Quote

  #2 (permalink)  
Old Nov 29th, 2007, 09:15
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Relative <DIV> Size Problem

First thing I would do is remove your position absolutes and position your divs in px. just had a play around in firebug and that solved most of the problems you are having.
Reply With Quote
  #3 (permalink)  
Old Nov 29th, 2007, 09:54
SuperMember

SuperMember
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Relative <DIV> Size Problem

Also note that you have a parse error in your CSS:

Quote:
background color:#CCCCCC;
Search for that text string, and replace it with:

Quote:
background-color:#CCCCCC;
Reply With Quote
  #4 (permalink)  
Old Nov 29th, 2007, 10:43
New Member
Join Date: Nov 2007
Location: Telford
Age: 18
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Relative <DIV> Size Problem

Thanks for the feedback guys.

That parse error....the replacement text string is the same.

If I specify my DIV positioning with pixels will it still render correctly with different resoloutions?
Reply With Quote
  #5 (permalink)  
Old Nov 29th, 2007, 10:46
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,378
Blog Entries: 13
Thanks: 1
Thanked 15 Times in 13 Posts
Re: CSS Relative <DIV> Size Problem

Quote:
Originally Posted by andycain View Post

That parse error....the replacement text string is the same.
If you look closely then you will see that one is hypenated and the other isn't

Quote:
Originally Posted by andycain View Post
If I specify my DIV positioning with pixels will it still render correctly with different resoloutions?
It should be fine, but if you run into any issues just coome back to us and we can help.
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #6 (permalink)  
Old Nov 29th, 2007, 10:49
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Relative <DIV> Size Problem

As welshstew said it should be fine.
When the changes are complete post your link again and we will check in different browsers for you.
Reply With Quote
  #7 (permalink)  
Old Nov 29th, 2007, 14:32
New Member
Join Date: Nov 2007
Location: Telford
Age: 18
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Relative <DIV> Size Problem

Thanks guys. Will make modifications asap and repost on this thread.

Really appreciate your help.
Reply With Quote
Reply

Thread Tools

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Size problem? :( westy Web Page Design 7 Feb 27th, 2008 22:33
relative Positioning Problem Dunce Web Page Design 6 Jun 8th, 2007 10:54
relative positioned layer problem artdog Web Page Design 3 Aug 2nd, 2006 11:12
relative position problem antonyx Web Page Design 12 Dec 30th, 2005 21:19
Stupid little TD size problem theotherlight Web Page Design 2 Aug 5th, 2005 10:17


All times are GMT. The time now is 04:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43