Webmaster Forum

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 10-16-2007, 08:00 AM   #1 (permalink)
Member
 
Join Date: 09-26-07
Location: Oregon
Posts: 48
iTrader: 0 / 0%
Latest Blog:
None

CountryNaturals is liked by many
How do I make an image size relative to screen resolution?

When I change my screen resolution, my table widths change because I have them set to %, but my logo stays the same. I'm switching from tables to css and I've seen some templates where the top banner expands and contracts with different screen resolutions, but I can't figure out how they did it and I can't find anything about it in my new Dreamweaver docs. Is this something super complicated? I can use the free template that has that feature if I have to, but I'd rather design my own if I can. Thanks in advance for pointing me in the right direction.

Suz
CountryNaturals is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 10-16-2007, 12:41 PM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,851
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Example:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Image Resizing</title> </head> <body> <table style="width: 100%;"> <tr> <td style="width: 100%; height: 200px;"> <img src="TheImage.jpg" style="width: 100%; height: 100%;" /> </td> </tr> </table> </body> </html>

__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-16-2007, 03:14 PM   #3 (permalink)
Member
 
Join Date: 09-26-07
Location: Oregon
Posts: 48
iTrader: 0 / 0%
Latest Blog:
None

CountryNaturals is liked by many
Migosh! You just bailed me out again. May I adopt you, please?

Suz
CountryNaturals is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-16-2007, 03:35 PM   #4 (permalink)
Contributing Member
 
Join Date: 02-10-07
Posts: 329
iTrader: 1 / 100%
Latest Blog:
None

ScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really nice
Quote:
Originally Posted by CountryNaturals View Post
Migosh! You just bailed me out again. May I adopt you, please?

Suz
The only problem with that method is that expanding an image can make it fuzzy and it may not look the way you want when someone with 1900w resolution views it.

Another approach is to keep your image size the same floated in a div with the same background color as the image BG. This way your image stays clear and sharp, only the space around it increases.

BTW, that [] was caused by a word 1/2 symbol.
__________________
ScriptMan
Gardening?
ScriptMan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-16-2007, 03:41 PM   #5 (permalink)
Member
 
Join Date: 09-26-07
Location: Oregon
Posts: 48
iTrader: 0 / 0%
Latest Blog:
None

CountryNaturals is liked by many
Thanks. I'll try it that way, too.

Suz
CountryNaturals is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-20-2007, 12:46 PM   #6 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,784
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
Send a message via Yahoo to Taltos
Scriptman went the route I tend to go with one exception. I use an image that will fill my header width out to at least 1600 pixels and float it in a div or center it in a div. Whether I float or center depends on the content of the image and what part of it I consider more important. You also need to style the div with overflow: hidden.
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-20-2007, 12:59 PM   #7 (permalink)
Contributing Member
 
Join Date: 02-10-07
Posts: 329
iTrader: 1 / 100%
Latest Blog:
None

ScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really nice
Quote:
Originally Posted by Taltos View Post
I use an image that will fill my header width out to at least 1600 pixels and float it in a div or center it in a div. .
It guys like you that are going to force me to buy a new monitor.

I'm happy at 1024 with this old one.
__________________
ScriptMan
Gardening?
ScriptMan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-20-2007, 01:11 PM   #8 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,784
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
Send a message via Yahoo to Taltos
LMAO...that's good! I was doing the 1600+ pixel wide stuff in 1024 X 768 but I do finally have a laptop that will do 1900 x 1200. I don't run it that high usually but I do finally have it
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-21-2007, 05:55 PM   #9 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,851
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
My code was just a response to her question. As you can see, Scriptman, I didn't provided my personal consideration about that example.

I never add a floating image into my page header, because I'm just not happy with that technique...If I decide to have just one image as a banner then it will be set in the css as a background image. But if I decide to have 2 images to be used for the banner, then I'll set one as a background image for the page header container and the second image as a background image for the inner container.
This will explain better. http://blogs.msdn.com/mswanson/

__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-22-2007, 07:11 AM   #10 (permalink)
Contributing Member
 
Join Date: 02-10-07
Posts: 329
iTrader: 1 / 100%
Latest Blog:
None

ScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really niceScriptMan is just really nice
Costin

My reply was just meant to explain the effects of the action because I had first hand knowledge that the OP might never actually see the result of doing it that way. The OP does not use that resolution.

With some of the resolutions out there now, I personally don't believe anyone wants a 100% fluid format.
__________________
ScriptMan
Gardening?
ScriptMan is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-22-2007, 07:13 AM   #11 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,851
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
no problem, dude! everything's cool!
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

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
Getting Body Background to Adjust to Screen Size/resolution hbixler03 Coding Forum 5 03-16-2008 08:39 AM
screen resolution is an amazing 280X900 TheFriend Forum Lobby 8 01-23-2008 01:36 AM
Web page and screen resolution... ewomack Web Design Lobby 9 03-23-2007 08:04 AM
What screen resolution do you optmize for? atomicstomp Web Design Lobby 17 12-23-2003 03:59 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 01:13 PM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.