Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-27-2006, 07:43 PM lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
Even tough I in dreamweaver set a table with to 500px it will not stick to that, when E.G. pictures are but there or some of my files are included there...

How can i lock the table with, so that it will not change no matter how large a image is put there, and no matter what file is included ?

Have seen website where large images by them self adjust to the with of a table
tomcat_fo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-27-2006, 11:41 PM Re: lock table with ?
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
baiscally i think all you have to do is specify the image width and then it should be ok
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 08-28-2006, 03:51 AM Re: lock table with ?
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
You cant fix the table width if the content grows the table will grow Its the natural behavior of tables. You can fix the width of images etc to settle it down.
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-29-2006, 07:43 AM Re: lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
I have tryed to set the image with to max 500 in dreamweaver, but then my pictures look very strange..... is there a way to adjust the HIGHT so it automaticly changes depending on the WITH ?

Hope someone can paste the HTML here
tomcat_fo is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 08:01 AM Re: lock table with ?
blue-dreamer's Avatar
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
Resize your images to the maximum dimensions for you page. If you still want to show the bigger images just link to them from the smaller image.
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 10:02 AM Re: lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
Should it not be possible without resizeing the file ?.... i have seen websites where larege images are fit into some sort of box/frame/whatever... and then if you hold your mouse-marker over the image in explorer you see a magnifying-glas and if you clik you see the image 100% size (it is not a link to another large image)


Hope someone can tell me how this is done...
tomcat_fo is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 10:06 AM Re: lock table with ?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yes, but you can't do it with tables and HTML. What you've seen is scripting of one sort or another to do as you describe. Tables expand to fit the content within them, that is how tables are meant to be - you can't change it. You might want to look into something like this: Suckerfish HoverLightbox - Monday By Noon
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 10:57 AM Re: lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
Thanks for the tip ..... i think Webmaster-Talk.com Webmaster Forum - Web Design, Coding, SEO Forums use the same kind of thing.

Just downloaded the the file on the URL you submitted.... hope i get it to work
tomcat_fo is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 11:48 AM Re: lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Yes, but you can't do it with tables and HTML. What you've seen is scripting of one sort or another to do as you describe. Tables expand to fit the content within them, that is how tables are meant to be - you can't change it. You might want to look into something like this: Suckerfish HoverLightbox - Monday By Noon

Don't know if you have used that or not, but do you think it is fairly easy to get something like that to work with a MySQL database & PHP ?
tomcat_fo is offline
Reply With Quote
View Public Profile
 
Old 08-29-2006, 07:34 PM Re: lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
Have just put that thing on my website, but it uses a preset size, so that images get stretched and messed up if someone has taken a vertical shot with their camera.


.hoverbox .preview
{
border-color: #000;
width: 400px;
height: 300px;
}


Do you know if there is any way to set the with relativ to the height or the other way arround, so it is not messed up ?
tomcat_fo is offline
Reply With Quote
View Public Profile
 
Old 08-30-2006, 05:04 AM Re: lock table with ?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
not in HTML you can't. If you fix the size that is what it will be

HTML is not a scripting language. If you want to dynamically adjust images sizes and maintain aspect ratio it will have to be be done server side.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-30-2006, 07:33 AM Re: lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
Do you know any script that can check the size of an image (size and with)..... if there is one, then i could just make two varibles and assign what ever value the php script find to the var.
tomcat_fo is offline
Reply With Quote
View Public Profile
 
Old 08-30-2006, 07:46 AM Re: lock table with ?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
PHP: Image Functions - Manual
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 08-30-2006 at 07:47 AM.. Reason: edit URI
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-30-2006, 12:51 PM Re: lock table with ?
tomcat_fo's Avatar
Ultra Talker

Posts: 275
Trades: 0
well, now i don't really need that script since i did get my other image generation thing to work...... but i really like that script, so if someone adjusts it so it works with php and can keep image ratio - let me know about it !
tomcat_fo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to lock table with ?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77388 seconds with 12 queries