Submit Your Article 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 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 sanchopansa is on a distinguished road
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
sanchopansa 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 July 21st, 2006, 02:27 PM   #2
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
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.
moojoo 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 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 sanchopansa is on a distinguished road
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
sanchopansa 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 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 sanchopansa is on a distinguished road
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.
sanchopansa 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 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
Rep Altering Power: 0 Legacy_Staff has a spectacular aura about Legacy_Staff has a spectacular aura about Legacy_Staff has a spectacular aura about
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.
Legacy_Staff 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 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 sanchopansa is on a distinguished road
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
sanchopansa 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 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
Rep Altering Power: 0 Legacy_Staff has a spectacular aura about Legacy_Staff has a spectacular aura about Legacy_Staff has a spectacular aura about
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.
Legacy_Staff 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 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 mreine will become famous soon enough mreine will become famous soon enough
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.
mreine 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 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 sanchopansa is on a distinguished road
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 :-((
sanchopansa 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

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


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
Site Wide PR6 link available. Rob Link Building and Link Sales 3 June 10th, 2009 03:53 PM
image layout problem Inkzolt HTML, XHTML and CSS 1 May 3rd, 2008 02:14 PM
Resize dynamically loaded image nate2099 Flash and ActionScript 2 August 31st, 2007 06:36 PM
Beginner needs help on image & caption layout badger HTML, XHTML and CSS 3 June 21st, 2007 07:32 AM
Detecting "image loaded successfully" SlimShady JavaScript 5 December 22nd, 2006 12:08 PM


Search Engine Optimization by vBSEO 3.2.0 RC8