iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old November 29th, 2007, 04:53 AM   #1
New Member
 

Join Date: Nov 2007
Location: Telford
Age: 20
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 andycain is on a distinguished road
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; November 29th, 2007 at 09:33 AM.. Reason: Please attach BIG images.
andycain is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 06:15 AM   #2
Reputable Member
 

Join Date: Jun 2007
Location: uk
Posts: 461
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dab42pat is on a distinguished road
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.
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 06:54 AM   #3
Most Reputable Member
 

Join Date: May 2007
Location: UK
Age: 28
Posts: 1,107
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice
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;
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 07:43 AM   #4
New Member
 

Join Date: Nov 2007
Location: Telford
Age: 20
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 andycain is on a distinguished road
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?
andycain is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 07:46 AM   #5
Elite Veteran
SuperMember
 
welshstew's Avatar
 

Join Date: May 2007
Location: inside the outside
Posts: 3,910
Blog Entries: 14
Thanks: 9
Thanked 40 Times in 38 Posts
Rep Altering Power: 0 welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute
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
extreme sports clothing and t-shirts | twitter| web design
welshstew is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 07:49 AM   #6
Reputable Member
 

Join Date: Jun 2007
Location: uk
Posts: 461
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dab42pat is on a distinguished road
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.
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 11:32 AM   #7
New Member
 

Join Date: Nov 2007
Location: Telford
Age: 20
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 andycain is on a distinguished road
Re: CSS Relative <DIV> Size Problem

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

Really appreciate your help.
andycain is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 HTML, XHTML and CSS 7 February 27th, 2008 07:33 PM
relative Positioning Problem Dunce HTML, XHTML and CSS 6 June 8th, 2007 07:54 AM
relative positioned layer problem artdog HTML, XHTML and CSS 3 August 2nd, 2006 08:12 AM
relative position problem antonyx HTML, XHTML and CSS 12 December 30th, 2005 06:19 PM
Stupid little TD size problem theotherlight HTML, XHTML and CSS 2 August 5th, 2005 07:17 AM


Search Engine Optimization by vBSEO 3.2.0 RC8