|
|
 |
July 21st, 2006, 09:13 AM
|
#1
|
|
New Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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
|
|
|
July 21st, 2006, 02:27 PM
|
#2
|
|
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,081
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0
|
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.
|
|
|
July 21st, 2006, 02:56 PM
|
#3
|
|
New Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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
|
|
|
July 21st, 2006, 02:58 PM
|
#4
|
|
New Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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.
|
|
|
July 21st, 2006, 06:15 PM
|
#5
|
|
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 50
Posts: 654
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.
|
|
|
July 21st, 2006, 06:20 PM
|
#6
|
|
New Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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
|
|
|
July 21st, 2006, 08:46 PM
|
#7
|
|
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 50
Posts: 654
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.

|
|
|
July 21st, 2006, 10:49 PM
|
#8
|
|
Reputable Member
Join Date: Jul 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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.
|
|
|
July 22nd, 2006, 05:11 AM
|
#9
|
|
New Member
Join Date: Jul 2006
Location: Sofia, Bulgaria
Age: 23
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
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 :-((
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|