Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 21st, 2006, 14: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jul 21st, 2006, 19:27
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 21st, 2006, 19: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 21st, 2006, 19: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 21st, 2006, 23: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 21st, 2006, 23: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 22nd, 2006, 01: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 22nd, 2006, 03: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 22nd, 2006, 10: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 :-((
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

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


All times are GMT. The time now is 18:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8