• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 836
  • Last Modified:

resize background depending on resolution

I am trying to write a web page and the client wants a resizable background so it looks the same at any resolution by dymically resizing to match ther browser is that posible and I want the main ie center to float over the top

I am using dreamweaver cs4 but my flash is very basic and I think it needs to be done in action script
0
IanTh
Asked:
IanTh
  • 5
  • 3
1 Solution
 
glenn_1984Commented:
Take a look at this http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/b35c438cf323caa4

However, if you want you can size everything to 100 % .
0
 
IanThAuthor Commented:
sorry its a bit too complex I am a noob u see I know how to do <div> and css but new to javascript and I think its a javascript thing really  
0
 
glenn_1984Commented:
In Dreamweaver, do you create a Table or DIV?
When you create either, you can give it a size like 300 px or 900 px.
You can also give it a size like 100% (change the px to %).
So, if you have a Table sized at 700 px wide and change it to 90% wide, it will take up 90% of whatever screen it is on.
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
IanThAuthor Commented:
div's usually why? I thought you only use tables for database stuff these days
0
 
glenn_1984Commented:
You are correct about divs.  Tables are old. Still widely used, however.
Same approach, you can create a wrapper div (one that goes around all the others) and size that by % of screen size.  If you have smaller ones too, however, they should also be resized by %.
0
 
IanThAuthor Commented:
so if i do a div for the whole background and then in css say#background{ width: 100%;} for the  background div would that work if i put a gif image in the background div and also set that to 100% would that work
0
 
glenn_1984Commented:
yes, but the gif would fill up 100% of the page.

You may want a background div 100% then another div for the gif itself set for 100
0
 
glenn_1984Commented:
Try it and see how it looks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now