navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Flash Banner Problem

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Expression Web Help >> Flash Banner Problem
Page: [1]
 
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
Flash Banner Problem - 12/26/2007 16:46:32   
I developed a flash banner for a website under construction.
The banner does not stretch the whole width of the web page. It occupies about 50% of the space. How can I make it to occupy 100% of the space, that is, stretching the full width from left to right?

Here is the URL of the test site: http://amtexhouston.com/

Obi
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Flash Banner Problem - 12/26/2007 17:01:09   
<!-- Begin Masthead -->
	<div id="masthead">
<p align="center">
	<object width="755" height="250" id="amtexflash2" data="amtexflash2.swf" type="application/x-shockwave-flash"> 
		<param name="movie" value="amtexflash2.swf">
		<param name="quality" value="high">
		<param name="bgcolor" value="#ffffff">

		MARTINSflash2
	</object>
</p>
		<p> </p>
	</div>
	<!-- End Masthead -->


In the code for the banner you have a fixed width specified of 755. You can change that but be aware that it also depends on what width you saved your Flash file as when you created it. If it was narrower than a full page width then it will just get stretched out of shape when you alter the width in the code.

But overriding all of this is, How wide is a page?
Some people have 880px width, some have 1024 others have wider. You can specify your graphic at 100% which will stretch it or shrink it to whatever width but it's going to look odd.

What you should do is design your header so that part of it is a graphic and the rest is a background so that it will resize seamlessly at any width.



_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 12/26/2007 17:11:40   
Thank you for a speedy reply. I am glad that you recognize that I cannot specify the width to 100% since the banner is not graphic.

But you wrote: "What you should do is design your header so that part of it is a graphic and the rest is a background so that it will resize seamlessly at any width." Will this still retain the flash attributes? How do I design part of the headeer graphic and part background assuming the flash will not be lost.

Obi

(in reply to jaybee)
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Flash Banner Problem - 12/26/2007 17:43:18   
OK, you seem to have hacked around a template of some sort and killed off most of the styles. We can reuse them to sort this out.

Your flash banner is sitting in a Div which has an ID of masthead so what we need to do is tell it to apply a background image or colour to the Div Masthead.

You have a file called style2.css in a folder called styles. It's currently empty.

type the following into it

#masthead {background-color:red;}


save the .css file then check out your page. You'll see the entire area behind your Flash banner is red. You can change that to any colour you want and it will spread across the page.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 12/26/2007 17:54:01   
I opened the style2.css in code. It is not empty but full of codes. Where in the code do I type this code "#masthead {background-color:red;}"

Below is what I see in style2.css

@import url("layout.css");
body {
font-family: Arial, sans-serif;
font-size: medium;
color: #000;
}
#container {
width: 100%;
height: 100%;
background-color: #74B8FC;
}
#masthead {
width: 100%;
overflow: auto;
text-align: right;
background-color: #c5d5e5;
}
#page_content {
position: relative;
}
#sidebar {
position: relative;
float: left;
width: 140px;
background-color: #cb8;
}
#content {
margin-left: 160px;
padding: 10px;
background-color: #fff;
}
#footer {
clear: both;
width: 99%;
overflow: hidden;
padding-top: 1%;
padding-right: 0;
padding-bottom: 1%;
padding-left: 1%;
background-color: #cdf;
}
#masthead img {
float: left;
}
#masthead p {
font-size: small;
margin: 0;
margin-right: 1%;
}
h1,h2,h3,h4,h5,h6 {
font-family: Arial Black;
}
/* Styles for Navigation */
#sidebar ul {
list-style-type: none;
width: 100%;
display: block;
margin: 0;
padding: 0;
}
#sidebar li {
display: block;
border: 1px solid #cb8;
}
#sidebar a {
font-weight: bold;
text-decoration: none;
color: #393939;
padding: 5%;
display: block;
border-bottom: 1px solid #f5f5f5;
}
#sidebar a:hover {
font-weight: bold;
text-decoration: none;
color: #393939;
border-bottom: 1px solid #f5f5f5;
background-color: #dc9;
}
/* Styles for Footer */
#footer p {
font-size: x-small;
}
#footer a {
color: #393939;
text-decoration: underline;
}
#footer a:hover {
color: #393939;
text-decoration: none;
}
a {
color: #393939;
text-decoration: underline;
}
a:hover {
color: #78a;
text-decoration: underline;
}
.style_bold {
font-weight: bold;
}
.style_italic {
font-style: italic;
}

(in reply to jaybee)
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Flash Banner Problem - 12/26/2007 19:00:47   
If that's the case then the css file either hasn't been uploaded to your host or it's in the wrong folder. The homepage is looking for a file
<link href="styles/style2.css" rel="stylesheet" type="text/css" /> and it's coming up 404 not found.

If you upload it or put it in the right folder, you'll find your page changes somewhat as the styles will suddenly start to work and you'll see it already has a pale blue background behind your Flash banner.

Looks like there are other css files as well such as layout.css.

Either you haven't uploaded the styles folder and the files within it or you've put it in the wrong place.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 12/26/2007 22:30:24   
I went and reworked the banner in the Flash program by specifying 1024 by 450. The result does not fully stretch the banner from side to side. The style folder is back where it should be. Do you have any advice for me on how to proceed? Please take a look. Thank you.

http://amtexhouston.com/

Obi

(in reply to jaybee)
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 6:02:51   
The banner is stretched completely out of shape, you need to specify the size in the code to be the same size as you set the banner up in Flash.

The style sheet isn't there, I'm still getting a 404. It's supposed to be in a folder in the root of the site called styles. http://amtexhouston.com/styles/style2.css you've uploaded it to your root folder ie, in the same place as your index file, it needs to be in a styles folder.

Correct that then take another look at it.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 10:55:22   
Thank you Jaybee. Which of the style sheets control the masthead and container? style1, style2 or style3? I specified the size of the banner in code in style3 since I did not see how to do it in style2. The style sheets are now in the style folder.

One thing I need to tell you so that you can help me is that I created one page test website from the original and imported a number of elements from the original website into it. I imagined that if I am able to see how it works from the one page website, I can carry it over to the website under development. I hope this helps.

I see no difference in the updated website: http://amtexhouston.com/

Obi

(in reply to jaybee)
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 13:30:19   
The styles for the background are in style2 as I posted before #masthead.

You see no difference? The background of the flash banner is now a pale blue block and there'a a darker blue block down the left hand side. The footer is in a pale blue block. Previously it was all white. If you can't see that on the web then refresh your cache.

The style sheets have put those in. If you want to know which style sheet works with which page then look in the page code and it tells you which sheets it's calling in the header.

There are some good css tutorials at http://www.w3schools.com/css/default.asp

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 16:37:25   
Thank you Jaybee. I am a slow learner and you are a patient and excellent teacher. At last I knew where to apply the #masthead {background-color:red;}. It makes a visually more pleasing layout. I am very happy with this but want to experiment with other background colors. You wrote: "You can change that to any color you want and it will spread across the page. " How do I make the color change? Just replace red with black, green, orange, etc. Secondly, note in the updated webpage that the color of the footer did not change. How do I change it to be red like the flash banner?

I am trying hard to learn the CSS and I had read the tutorial reference you gave above but but have not understood enough to do things with the limited knowledge. I hope you will share more of your knowledge. It is easier to learn from you than from the tutorial. Many thanks.

http://amtexhouston.com/

Obi


(in reply to jaybee)
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 17:40:56   
You can change the colour from red to blue or yellow or any of the standard Windows basic colours or, you can use the hexadecimal codes for colours but if you do that you must specify them with a hash/pound sign on the front. So red would be #ff0000 for example.

There is a list of web safe hex colour codes here

Now as to the footer, if you look at the HTML code for your page you'll see:

<!-- Begin Footer -->
			<div id="footer">
				<p class="style6"><a href="http://amtexhouston.com/default.htm">
				Home</a> |  


Note it says id="footer"

look for the #footer in the stylesheet. It says:

#footer {
	clear: both;
	width: 99%;
	overflow: hidden;
	padding-top: 1%;
	padding-right: 0;
	padding-bottom: 1%;
	padding-left: 1%;
	background-color: #cdf;
}


The background colour is #cdf which is the pale blue. If you replace the #cdf with red, (make sure you leave the ; on the end) the footer should change to red.

As you are just building this site there is a very good book which will teach you all of this, step by step. It takes you right through building a site.

Build your own site the right way you can get it from Amazon as well as direct from Sitepoint. Amazon tends to be faster to deliver.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 17:57:26   
Dear Jaybee,

At this point, I can only say a BIG THANK you for everything. Suddenly everything has become clear.

Obi

(in reply to jaybee)
jaybee

 

Posts: 14175
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 18:37:43   
You're welcome. It's confusing to start off with but it's worth all the aggro when you get it sorted. That book is brilliant. The author lives near me and has written it in very simple steps. If you get it and follow it you'll end up with a complete site and you'll understand how it all hangs together.

Good luck. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to obialor)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 12/27/2007 20:51:11   
I thank you for the recommendation of the book. I have downloaded the free 4 chapter PDF to review tonight and see the feel of it before I make a purchase decision. I am glad you said that it was written in simple steps. This will be enormously useful for busy people today. Thanks again for a good job.

Obi

(in reply to jaybee)
obialor

 

Posts: 72
Joined: 1/9/2007
Status: offline

 
RE: Flash Banner Problem - 1/2/2008 17:32:13   
I need some help. How do I extend the width of the LEFT light blue (sidebar). I call it sidebar for want of a better word. The website is: http://amtexhouston.com/

Obi

(in reply to obialor)
Page:   [1]

All Forums >> Web Development >> Expression Web Help >> Flash Banner Problem
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts