Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

Lionsanime Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-03-2008, 05:35 PM   #1 (permalink)
Junior Member
 
Join Date: 02-03-08
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

cheska is liked by many
CSS div width / DIV with aut expanding width depending on content

Hi : )

On this page here : http://lucid-life.com/lucid_sites/test/test.html , you will see i have a div which scrolls the content. The intention is to actually only have it scroll horizontally, and not vertically.

However, it contains a table, which contains images. I want to eventually find a way for my client to upload images (numbered 1.jpg upwards*), and the table (or just the div) will expand width-wise to contain the content. The images float left, so should always be horizontal, but for now, unless I define the width of the table to be wide enough for all the contained images, the images obviously wrap within the div, and a vertical scrollbar appears.

The problem is, since i won't know the width of al the images it will eventually contain, i can't declare the width. I thought of possibly setting a ridiculously long width, but then the problem will be that the div scrolls a large amount of empty content at the end (after the images), and that's undesirable.

I fear i've probably done an awful job of explaining my problem, but if you are at all inclined to delve a little further, all the css is in the actual page... I'll be grateful of anyone's advice/input.

Thanks,

Cesca
cheska is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-04-2008, 12:47 AM   #2 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 425
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
have you tried setting the max-height of the div to your requiredheight and the width to auto?

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-04-2008, 09:55 AM   #3 (permalink)
Junior Member
 
Join Date: 02-03-08
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

cheska is liked by many
hey boogle,

thanks for your reply! well, i just tried that now (setting the max-height)... crossed my fingers but no joy.... i don't realy want to setthe width to auto since i want the scroll window to be specifically 750px... although it's possible i'm notunderstanding you correctly.... thanks for your input... any other thoughts?


ccesca
cheska is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-04-2008, 11:37 AM   #4 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 425
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
If you post your code, Cheska I will amend it for you? PM me it or paste it here in [code][/*CODE] brackets
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB 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
New Problem: td width? Capo64 Coding Forum 9 06-15-2007 11:05 AM
Width.org and Finalize.org younghistorians Domain Name Forum 15 11-04-2006 09:02 AM
Question about the width fuser Coding Forum 4 08-15-2006 04:28 PM
I need help width colors... SN3 Web Design Lobby 3 01-27-2004 02:03 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:12 PM.
© Copyright 2008 V7 Inc