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.
|
|
|
|
|
![]() |
||
new to css- how to strech the whole layout when a very wide image is loaded.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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)
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||
|
|||
|
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 :-((
|
![]() |
| Tags |
| css, strech, whole, layout, wide, image, loaded |
| Thread Tools | |
|
|
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 |