Solved

resize background depending on resolution

Posted on 2009-05-05
9
825 Views
Last Modified: 2013-11-11
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
Comment
Question by:IanTh
  • 5
  • 3
9 Comments
 
LVL 16

Expert Comment

by:glenn_1984
ID: 24308704
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
 
LVL 30

Author Comment

by:IanTh
ID: 24308817
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
 
LVL 16

Expert Comment

by:glenn_1984
ID: 24308989
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 30

Author Comment

by:IanTh
ID: 24309047
div's usually why? I thought you only use tables for database stuff these days
0
 
LVL 16

Expert Comment

by:glenn_1984
ID: 24309091
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
 
LVL 30

Author Comment

by:IanTh
ID: 24312770
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
 
LVL 16

Accepted Solution

by:
glenn_1984 earned 500 total points
ID: 24314661
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
 
LVL 16

Expert Comment

by:glenn_1984
ID: 24314666
Try it and see how it looks
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Create recordset using Dreamweaver PHP and MS SQL 2008 4 551
Coldfusion connection with xampp2 5 227
Adobe Presenter not Publishing Slide Theme 17 125
Semi-transparent PNG 5 154
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question