new to css- how to strech the whole layout when a very wide image is loaded.

This is a discussion on "new to css- how to strech the whole layout when a very wide image is loaded." within the Web Page Design section. This forum, and the thread "new to css- how to strech the whole layout when a very wide image is loaded. 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 Jul 21st, 2006, 13:13
Junior Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
new to css- how to strech the whole layout when a very wide image is loaded.

Hello!

I am just starting off with web design, so please excuse me if I am wasting your time with some elementary stuff.
I got this task to create a 2-column layout with header and footer and right navigation. It should basically look like this

http://i.data.bg/06/07/21/35293_orig.jpg

(the lighter blue being the content section)
My problem is that when a very wide image is displayed in the content(e.g. width="2000") the whole layout has to strech. And this is how mine looks

http://proba45.free.bg/HTMLPage.htm

while it should look like in the initial state.

Could anyone please help?

Kindest regards,
Valentin
Reply With Quote

  #2 (permalink)  
Old Jul 21st, 2006, 18:27
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,730
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: new to css- how to strech the whole layout when a very wide image is loaded.

That is one big picture. you could try overflow:auto; on the div holding the image which will add a horizontal scrollbar.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #3 (permalink)  
Old Jul 21st, 2006, 18:56
Junior Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: new to css- how to strech the whole layout when a very wide image is loaded.

I know it might work like this, but my task is to manage the layout without the overflow styling.
do you have any other suggestions how this might be done?
thanks for the help,
Valentin
Reply With Quote
  #4 (permalink)  
Old Jul 21st, 2006, 18:58
Junior Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: new to css- how to strech the whole layout when a very wide image is loaded.

btw, I tried as you suggested and navigation is positioned under the image. If i fix this with the z-index, it hasn't changed its position and it covers a part of the image.
Reply With Quote
  #5 (permalink)  
Old Jul 21st, 2006, 22:15
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: new to css- how to strech the whole layout when a very wide image is loaded.

Not the answer you're looking for but, why not reduce the size of the image?
It's very irritating for users who don't have auto-re-sizing activated and they may leave the site in frustration (I do).
If it's already the right size for their convenience it has two advantages;
1) keeps them happy and encouraged to delve further into the site,
2) (if you reduce the size before placing it on the page) it reduces the file size of the image which means they don't have as long to hang around waitig for it to download.
Reply With Quote
  #6 (permalink)  
Old Jul 21st, 2006, 22:20
Junior Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: new to css- how to strech the whole layout when a very wide image is loaded.

I couldn't agree with you more, but the problem is that I am applaying for a job now and the guys from the company want it that way. I guess it's not about functionality or neatness but rather to test me because that's an unordinary layout.

Thanks anyways,
Valentin
Reply With Quote
  #7 (permalink)  
Old Jul 22nd, 2006, 00:46
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
Re: new to css- how to strech the whole layout when a very wide image is loaded.

In that case, good luck with the job.
Once you get started you can show you know how to do it properly and take over the company.
Reply With Quote
  #8 (permalink)  
Old Jul 22nd, 2006, 02:49
Reputable Member
Join Date: Jul 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Re: new to css- how to strech the whole layout when a very wide image is loaded.

I don't fully understand the issue here. Are you wanting the image to resize in order to be fully visible at any browser size? Or can only part of the image be visible until the browser width increases?

If doing the latter, you can just make the image a no-repeat background on a div element and set it at 50% horizontal position. As the browser size increases and decreases the image will remain centered and reveal or hide more of it as needed.
Reply With Quote
  #9 (permalink)  
Old Jul 22nd, 2006, 09:11
Junior Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: new to css- how to strech the whole layout when a very wide image is loaded.

I shouldn't resize the image. I think I figured it out (at least this part). You can see what I mean here- at least this is now working, but I have other problems now, unfortunately :-((
Reply With Quote
Reply

Tags
css, strech, whole, layout, wide, image, loaded

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
image layout problem Inkzolt Web Page Design 1 May 3rd, 2008 18:14
Site Wide PR6 link available. Rob Link Building and Link Sales 0 Feb 27th, 2008 11:01
Resize dynamically loaded image nate2099 Flash & Multimedia Forum 2 Aug 31st, 2007 22:36
Beginner needs help on image & caption layout badger Web Page Design 3 Jun 21st, 2007 11:32
Detecting "image loaded successfully" SlimShady JavaScript Forum 5 Dec 22nd, 2006 16:08


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


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