Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-21-2008, 07:06 PM   PM User | #1
black_lotus
New to the CF scene

 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
black_lotus is an unknown quantity at this point
auto image height

I have a table with the outside borders a stretched 1px*1px image. The content of the table is filled through an AJAX call which returns table rows and so the height of the table varies. Can the height of the side images be automatic in some way? If not through static HTML, through DHTML?

Thanks
black_lotus is offline   Reply With Quote
Old 05-21-2008, 08:45 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,584
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Oh my… you’re using AJAX calls and at the same time you’re still applying borders through plain images? Have you ever heard of background images? They repeat themselves automatically in each direction unless you specify differently. For example element {background: url(image.png) top left repeat-y;} will make the image repeat vertically. Is all done in CSS. No „DHTML“ or such complicated stuff.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 05-21-2008, 09:00 PM   PM User | #3
black_lotus
New to the CF scene

 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
black_lotus is an unknown quantity at this point
Thanks God. You're the best.
black_lotus is offline   Reply With Quote
Old 05-21-2008, 10:05 PM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,584
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
I know, I know. But you can call me Stephan.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:24 AM.


Advertisement
Log in to turn off these ads.