Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Web Design & Development Web Design & Development
Search Search
Search for:
Tech Support Guy > > >

Dreamweaver CS5


(!)

amandahaa's Avatar
amandahaa amandahaa is offline
Computer Specs
Member with 3 posts.
THREAD STARTER
 
Join Date: Jul 2012
20-Jul-2012, 09:59 AM #1
Dreamweaver CS5
I'm working on a site in Dreamweaver Cs5. It opens wonderfully on every browser except Explorer. The photo sliders on every page are moved over to the left. I have to look online to place them on the page properly. Heres the code and the url is
http://www.northstarconservancy.org/

Thank You! It works properly on every browser except Explorer.
Amanda


<!DOCTYPE HTML>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background: #42413C;
margin: 0;
padding: 0;
color: #336;
background-image: url(file:///C|/Users/Studio 17/Desktop/Northstarconservancy/awesome2.jpg);
height: 50px;
background-image: url(awesome2.jpg);
}
/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
padding: 0;
margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing block. The remaining bottom margin will hold it away from any elements that follow. */
padding-right: 15px;
padding-left: 15px; /* adding the padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any box model math. A nested block with side padding can also be used as an alternate method. */
font-size: medium;
color: #FFF;
text-align: center;
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
border: none;
text-align: left;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
color: #336;
text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
color: #336;
text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
text-decoration: none;
text-align: left;
}
/* ~~ This fixed width container surrounds all other blocks ~~ */
.container {
width: 1000px;
background: #FFFFFF; /* the auto value on the sides, coupled with the width, centers the layout */
background-color: #666;
height: 2000px;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
word-wrap: break-word;
}
/* ~~ The header is not given a width. It will extend the full width of your layout. ~~ */
header {
background: #ADB96E;
background-color: #336;
}
/* ~~ These are the columns for the layout. ~~
1) Padding is only placed on the top and/or bottom of the block elements. The elements within these blocks have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the block itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the block element and place a second block element within it with no width and the padding necessary for your design.
2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a block set to float right). Many times, padding can be used instead. For blocks where this rule must be broken, you should add a "display:inline" declaration to the block element's rule to tame a bug where some versions of Internet Explorer double the margin.
3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar blocks could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
4) If you prefer your nav on the left instead of the right, simply float these columns the opposite direction (all left instead of all right) and they'll render in reverse order. There's no need to move the blocks around in the HTML source.
*/
.sidebar1 {
float: right;
width: 180px;
background: #EADCAE;
background-color: #336;
border-color: #336;
height: 1500px;
padding-top: 0px;
}
.content {
width: 780px;
float: right;
background-color: #999;
height: 1500px;
padding-bottom: 10px;
}
/* ~~ This grouped selector gives the lists in the .content area space ~~ */
.content ul, .content ol {
padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
}
/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
nav ul {
list-style: none; /* this removes the list marker */
border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
margin-bottom: 15px; /* this creates the space between the navigation on the content below */
font-family: Verdana, Geneva, sans-serif;
font-weight: bold;
font-size: large;
}
nav ul li {
border-bottom: 1px solid #666; /* this creates the button separation */
}
nav ul a, nav ul a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
padding: 5px 5px 5px 15px;
display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
width: 160px; /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
text-decoration: none;
background: #C6D580;
}
nav ul a:hover, nav ul a:active, nav ul a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
color: #333;
background-color: #666;
border-color: #CCC;
}
/* ~~ The footer ~~ */
footer {
padding: 10px 0;
background: #CCC49F;
position: inherit;/* this gives IE6 hasLayout to properly clear */
clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
background-color: #333366;
word-wrap: break-word;
}
/*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. */
header, section, footer, aside, nav, article, figure {
display: block;
color: #336;
font-weight: normal;
}
#apDiv1 {
position:absolute;
left:208px;
width:446px;
height:138px;
z-index:1;
background-color: #CCC;
top: -11px;
word-wrap: break-word;
}
#apDiv46 {
position:absolute;
left:89px;
top:102px;
width:686px;
height:532px;
z-index:19;
}
#apDiv2 {
position:absolute;
left:950px;
top:1px;
width:170px;
height:97px;
z-index:2;
}
.container .content #id2 div div p {
font-weight: bold;
}
#apDiv3 {
position:absolute;
left:213px;
top:148px;
width:404px;
height:1322px;
z-index:2;
}
.container .content #id2 div section p {
text-align: center;
}
-->
</style><!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/...5.js"></script>
<![endif]-->
<style type="text/css">
#apDiv4 {
position:absolute;
left:926px;
top:-5px;
width:206px;
height:90px;
z-index:3;
}
.container .content #id2 div section h2 span {
font-weight: bold;
}
.container .content #id2 div section h2 span {
font-weight: normal;
}
#apDiv5 {
position:absolute;
left:867px;
top:1501px;
width:79px;
height:24px;
z-index:3;
}
.container .content #id2 div div p {
color: #336;
font-style: normal;
text-align: left;
}
.container footer p {
color: #CCC;
}
.container footer p {
color: #FFF;
}
</style>
<style type="text/css">
.container .content #id2 div section p {
font-size: medium;
text-align: left;
font-weight: bold;
color: #336;
}
.container footer p span {
text-align: left;
}
#apDiv6 {
position:absolute;
left:530px;
top:150px;
width:342px;
height:1310px;
z-index:4;
}
</style>
<script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryImageLoader.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryImageSlideShow.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryPanAndZoomPlugin.js" type="text/javascript"></script>
<link href="Spry-UI-1.7/css/SpryImageSlideShow.css" rel="stylesheet" type="text/css">
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2141542" binding="#ImageSlideShow_2" />
<oa:widget wid="2624026" binding="#OAWidget" />
<oa:widget wid="2141542" binding="#ImageSlideShow" />
</oa:widgets>
-->
</script>
<style type="text/css">
#apDiv7 {
position:absolute;
left:1034px;
top:417px;
width:169px;
height:210px;
z-index:5;
}
.container .content #id2 div section ul li {
}
.container .content #id2 div section ul li span {
text-align: left;
}
.container .content #id2 div section p {
text-align: left;
}
.container .content #id2 div section p {
text-align: left;
}
.container .content #id2 div section p {
text-align: left;
}
.container .content #id2 div section p {
text-align: left;
}
#apDiv8 {
position:absolute;
left:373px;
top:184px;
width:656px;
height:2337px;
z-index:2;
}
</style>
<style type="text/css">
.container .content #id2 div div p span {
font-size: small;
}
#apDiv9 {
position:absolute;
left:1003px;
top:508px;
width:130px;
height:682px;
z-index:3;
}
#apDiv10 {
position:absolute;
left:1057px;
top:413px;
width:187px;
height:620px;
z-index:3;
color: #FFF;
}
</style>
<style type="text/css">
/* BeginOAWidget_Instance_2624026: #OAWidget */

.element{
width:140px;
height:70px;
background-color:#000066;
color:#fff;
float:left;
margin-right:10px;
overflow:hidden;
-moz-transition-property:height;
-moz-transition-duration:1s;
-o-transition-property:height;
-o-transition-duration:1s;
-webkit-transition-property:height;
-webkit-transition-duration:1s;

}
.element img{
width:140px;
height:70px;

}
.element:hover{
height:160px;
-moz-transition-property:height;
-moz-transition-duration:1s;
-o-transition-property:height;
-o-transition-duration:1s;
-webkit-transition-property:height;
-webkit-transition-duration:1s;
}
.empty{
clear:both;
height:20px;
background-color:#333333;
}
/* EndOAWidget_Instance_2624026 */
#apDiv11 {
position:absolute;
left:840px;
top:616px;
width:137px;
height:28px;
z-index:4;
}
#apDiv10 p span {
font-weight: bold;
}
#apDiv12 {
position:absolute;
left:799px;
top:2px;
width:204px;
height:117px;
z-index:3;
}
#apDiv13 {
position:absolute;
left:156px;
top:161px;
width:auto;
height:1315px;
z-index:4;
word-wrap: break-word;
}
</style>
<style type="text/css">
#apDiv14 {
position:absolute;
left:103px;
top:2122px;
width:707px;
height:920px;
z-index:5;
background-color: #333366;
text-align: left;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
#apDiv15 {
position:absolute;
left:2px;
top:3498px;
width:1002px;
height:64px;
z-index:6;
background-color: #336;
color: #CCC;
font-size: small;
text-align: center;
}
#apDiv14 p strong {
text-align: left;
}
#apDiv14 p strong {
text-align: left;
}
#apDiv14 p {
text-align: left;
font-size: large;
}
#apDiv16 {
position:absolute;
left:527px;
top:2536px;
width:299px;
height:225px;
z-index:7;
}
.container .sidebar1 nav ul li {
font-size: 17px;
}
</style>
<style type="text/css">
#apDiv17 {
position:absolute;
left:203px;
top:1px;
width:429px;
height:120px;
z-index:5;
word-wrap: break-word;
}
#apDiv18 {
position:absolute;
left:91px;
top:188px;
width:795px;
height:370px;
z-index:6;
}
#apDiv19 {
position:absolute;
left:99px;
top:143px;
width:521px;
height:327px;
z-index:6;
}
</style>
<style type="text/css">
/* BeginOAWidget_Instance_2141542: #ImageSlideShow */
#ImageSlideShow.ImageSlideShow {
width: 600px;
height: 300px;
border: solid 3px #000000;
}
#ImageSlideShow .ISSClip {
background-color: #000000;
}

/* EndOAWidget_Instance_2141542 */
#apDiv20 {
position:absolute;
left:220px;
top:1768px;
width:281px;
height:24px;
z-index:7;
font-size: small;
}
#apDiv21 {
position:absolute;
left:235px;
top:1926px;
width:212px;
height:24px;
z-index:7;
}
</style>
</head>
<body>
<div id="apDiv12"><a href="logosketch1E_website.jpg"><img src="logosketch1E_website.jpg" width="217" height="112" alt="logo" longdesc="logo.jpg"></a></div>
<div id="apDiv17"><a href="NstarImages/NstarImages/shapeimage_1.png"><img src="shapeimage_1.png" width="428" height="120"></a></div>
<div id="apDiv19">
<ul id="ImageSlideShow">
<li><a href="blackwhitethmb.jpg"><img src="blackwhitethmb.jpg" alt="" width="479" height="283" /></a></li>
<li><a href="blackwhite2thmb.jpg"><img src="blackwhite2thmb.jpg" alt="" width="459" height="306" /></a></li>
<li><a href="North Star 17.jpeg"><img src="North Star 17.jpeg" alt="" width="499" height="287" /></a></li>
<li><a href="North Star 19.jpeg"><img src="North Star 19.jpeg" alt="" width="496" height="293" /></a></li>
<li><a href="North Star 2.jpeg"><img src="North Star 2.jpeg" alt="" width="491" height="293" /></a></li>
</ul>
<script type="text/javascript">
// BeginOAWidget_Instance_2141542: #ImageSlideShow
var ImageSlideShow = new Spry.Widget.ImageSlideShow("#ImageSlideShow", {
widgetID: "ImageSlideShow",
injectionType: "replace",
autoPlay: true,
displayInterval: 4000,
transitionDuration: 2000,
componentOrder: ["view", "controls"],
plugIns: [ Spry.Widget.ImageSlideShow.PanAndZoomPlugin ]
});
// EndOAWidget_Instance_2141542
</script>
</div>
<div id="apDiv21"><span style="font-size: small">Powered by</span> <a href="http://www.redoordesigns.net" style="font-size: small">Red Door Designs</a></div>
<div class="container">
<header>
<p>&nbsp;</p>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</header>
<div class="sidebar1">
<nav style="">
<ul>
<li><a href="index.html" style="border: thin solid #CCC; background-color: #666;">Home</a></li>
<li><a href="history.html" style="border: thin solid #CCC; background-color: #666;">History</a></li>
<li><a href="Events.html" style="border: thin solid #CCC; background-color: #666;">Events</a><a href="Growers Market.html" style="border: thin solid #CCC; background-color: #666; font-size: medium;">Growers Market</a></li>
<li><a href="volunteers.html" style="border: thin solid #CCC; background-color: #666;">Volunteers</a></li>
<li><a href="preserving.html" style="border: thin solid #CCC; background-color: #666;">Preservation</a></li>
<li><a href="Landscaping.html" style="background-color: #666; border: thin solid #CCC;">Landscaping</a><a href="Aboutus.html" style="background-color: #666; border: thin solid #CCC;">About Us</a><a href="membership.html" style="border: thin solid #CCC; background-color: #666;">Membership</a></li>
</ul>
</nav>
</div>
<article class="content" style="top: 10px; text-align: center; font-weight: bold;">
<div id="id2">
<div>
<div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="text-align: left; color: #333; font-size: x-large;">The North Star House</span> <span style="text-align: left; font-style: italic; color: #333;">Preserving an Architectural Treasure</span></p>
<p>The North Star House is a 10,000 square foot home designed in 1905 by the renowned California Arts and Crafts architect <a href="http://api.getsmartlinks.com/r?app_i..._hash=e09876ce" style="font-size: large">Julia Morgan</a>. The House is located on a portion of the former North Star mine, a 14-acre site of spectacular Northern California landscape 1 mile form historic downtown Grass Valley.</p>
</div>
</div>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="font-size: x-large; font-style: italic; font-family: Georgia, 'Times New Roman', Times, serif; text-align: left; color: #333;">Our Mission...</p>
<p style="font-style: italic; font-family: Georgia, 'Times New Roman', Times, serif; font-size: large; color: #333;">The mission of the North Star Historic Conservancy is to rehabilitate the Julia Morgan-designed North Star House and its immediate grounds, reconnecting it to the greater Grass Valley area and restoring its place as an active hub of the community.</p>
<p>&nbsp;</p>
<p style="color: #000; font-size: large;"><span style="font-size: xx-large; color: #333; font-family: Verdana, Geneva, sans-serif;">New!</span> <span style="font-family: Verdana, Geneva, sans-serif; color: #333; font-size: large;">The North Star House is now listed on the Sierra Nevada Geo-tourism historic site. </span></p>
<p style="color: #000; font-size: large;">&nbsp;</p>
<p style="color: #000; font-size: xx-large; font-weight: bold;"><a href="http://www.sierranevadageotourism.or...32C3B5C808"><a href="SierraNevadaGeotourism.jpg"><img src="SierraNevadaGeotourism.jpg" width="70" height="95" alt="geo" longdesc="SierraNevadaGeotourism.jpg"></a></p>
<p style="color: #000; font-size: xx-large; font-weight: bold;"><a href="http://www.sierranevadageotourism.or...3B5C808">Click Here!</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="www.greenlifeecofest.org.jpg"><img src="www.greenlifeecofest.org.jpg" alt="" width="711" height="163" longdesc="www.greenlifeecofest.org.jpg"></a></p>
<p><a href="http://www.facebook.com/thenorthstarhouse"><img src="find_on_FB.jpg" width="76" height="24" align="right"></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</article>
</div>
</body>
</html>
roper position on the page.
colinsp's Avatar
colinsp   (Colin) colinsp is offline
Computer Specs
Member with 1,656 posts.
 
Join Date: Sep 2007
Location: Spain
20-Jul-2012, 11:05 AM #2
You are using absolutely positioned divs and as a result you are throwing out your display. Look at the screenshot below from Firefox on a wide screen.

You need to get rid of the ap div's and just make them normal ones positioned in the document flow.
Attached Thumbnails
Dreamweaver CS5-1-800.jpg  
amandahaa's Avatar
amandahaa amandahaa is offline
Computer Specs
Member with 3 posts.
THREAD STARTER
 
Join Date: Jul 2012
21-Jul-2012, 04:34 PM #3
Thank you, I thought it had something to do with margins on the divs, I'll go fix it.
Amanda
amandahaa's Avatar
amandahaa amandahaa is offline
Computer Specs
Member with 3 posts.
THREAD STARTER
 
Join Date: Jul 2012
22-Jul-2012, 06:38 PM #4
Hi,
It looks like I got the widget placed properly with the div tag on the first page, at least it appears to be correct on my pc and cell.... I couldn't find where to change it so it's positioned in document flow?
Thank you, Amanda
http://www.northstarconservancy.org/
colinsp's Avatar
colinsp   (Colin) colinsp is offline
Computer Specs
Member with 1,656 posts.
 
Join Date: Sep 2007
Location: Spain
23-Jul-2012, 02:07 AM #5
Amanda

Looking better now can I suggest a couple of changes to your stylesheet

Code:
#ImageSlideShow.ImageSlideShow {  margin: 0 auto; }
.container{height:1470px;}
Add the first line of code to that div declaration and change the value in the second one.

Traditionally your container would be an id rather than a class, as you only use it once on a page, but whatever works for you.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑