Topic: Border around viewer
Is it possible to add a thin border of about 5 pixels around the viewer?
You are not logged in. Please login or register.
Is it possible to add a thin border of about 5 pixels around the viewer?
Yes, you can do that with CSS for the object you are embedding the flash into.
border-style:solid;
border-width:5px;
could you please tell me how I define the "object"?
What is the URL of your gallery?
This is your embed code:
<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a><p> </div></p>
<p> </p>
<div id="flashContent" align="center"> </div><script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "Cheltenham/gallery.xml";
var params = {};
params.bgcolor = "222222";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("Cheltenham/simpleviewer.swf", "flashContent", "600", "450", "9.0.124", false, flashvars, params);
</script>
First you should get rid of one of the flashContent divs and then use the following CSS in the head of your doc.
<style type="text/css" media="screen">
#flashContent {
border-style:solid;
border-width:5px;
}
</style>
Thanks Mike - I've made those amendments. Does the code look OK now and do I just add the border colour under border-width:5px;?
border-color:#ff0000; You can see more CSS border info here.
http://www.w3schools.com/css/css_border.asp
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.
[ Generated in 0.068 seconds, 8 queries executed ]