I'm trying to have a centered spry nav menu on a fluid grid cs6 layout, but it sticks to the left. I thought inserting AUTO on both margins was supposed to help but it doesn't:
{
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: 100%;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}
BTW I have the spy menu inside it's own DIV, is this unnecessary? Better to have it inside the grid container on its own?
Okay: http://aa-test.businesscatalyst.com/index.html
TOP 2 LINES
Aren't mine, I can't delete them from the BC template. Yet.
WHITE SPRY MENU
Should be centered and travel along as does the black centered text below.
I put AUTO in left and right margins but to no success.
BLACK CENTERED TEXT OVER OPACITY
I placed text in a table (table inside the div) so I could give table an opacity.
I can't find opacity in any of the DW tutorials or in CS6 interface/program.
In essence, it should work like this http://www.bdelgrasso.com/styled/index.html
BACKGROUND IMAGE
Should grip side to side margins, I want it to fill background in largest view.
To keep porportions at widest view, it's okay if the bottom goes to black (I think I can field changing the white to black, two thumbs up on that)
Many thanks for any assistance.
BACKGROUND IMAGE:
body {
margin:0;
padding:0;
background: url(images/123-1407-bkg2.jpg) no-repeat center center fixed;
/**scalable BG for various browsers**/
-moz-background-size:cover;
-webkit-background-size:cover;
-ms-background-size:cover;
-o-background-size:cover;
background-size:cover;
}
Nancy O.
MISSING CSS FILES
module, base, skeleton & layout css are 404 not found on server.
OPACITY:
To create a semi-transparent division that won't effect opacity of content, use background with RGBA. The following is white with 40% opacity.
.gridContainer {
background: rgba(255,255,255,0.4);
}
Nancy O.
Nancy, I'm doing something wrong:
REGARDING MISSING CSS FILES
module, base, skeleton & layout css are 404 not found on server.
These I deleted because I thought they belonged with the template already on site, they weren't "my" files on local server.
REGARDING BACKGROUND & OPACITY
I dropped the codes in but they must be the wrong places, no difference.
Do I need to open a new temp site (giving me the module, base, skeleton & layout css) and start over using the missing css sheets?
I only mentioned they were 404 not found because your page references them.
CSS code belongs in your external CSS file or embedded within <style> tags inside the <head> of your HTML document. You incorrectly put the CSS code I gave you into your <body> tag.
Where exactly is the FluidGrid.css file for this page layout?
Nancy O.
FluidGrid.css would be external sheet aa.css, copied here:
@charset "UTF-8";
/* Simple fluid media
Note: Fluid media requires that you remove the media's height and width attributes from the HTML
http://www.alistapart.com/articles/fluid-images/
*/
img, object, embed, video {
max-width: 100%;
}
/* IE 6 does not support max-width so default to width 100% */
.ie6 img {
width:100%;
}
/*
Dreamweaver Fluid Grid Properties
----------------------------------
dw-num-cols-mobile: 8;
dw-num-cols-tablet: 8;
dw-num-cols-desktop: 16;
dw-gutter-percentage: 15;
Inspiration from "Responsive Web Design" by Ethan Marcotte
http://www.alistapart.com/articles/responsive-web-design
and Golden Grid System by Joni Korpi
*/
/* Mobile Layout: 480px and below. */
.gridContainer {
margin-left: auto;
margin-right: auto;
width: 89.5163%;
padding-left: 0.7418%;
padding-right: 0.7418%;
background: rgba(255,255,255,0.4)
}
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
@media only screen and (min-width: 481px) {
.gridContainer {
width: 91.4836%;
padding-left: 0.7581%;
padding-right: 0.7581%;
background: rgba(255,255,255,0.4)
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
}
/* Desktop Layout: 769px to a max of 1232px. Inherits styles from: Mobile Layout and Tablet Layout. */
@media only screen and (min-width: 769px) {
.gridContainer {
width: 79.3478%;
max-width: 1232px;
padding-left: 0.326%;
padding-right: 0.326%;
margin: auto;
background: rgba(255,255,255,0.4)
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 12.6027%;
width: 74.7945%;
display: block;
}
}
Anita Adamski wrote:
FluidGrid.css would be external sheet aa.css,
That link to that file is pointing to your local hard drive in the page code (it's a 404 Not Found)
<link href="file:///Macintosh HD/Users/anitaadamski/Sites/aa/aa.css" rel="stylesheet" type="text/css">
should read
<link href="stylesheets/aa/aa.css" rel="stylesheet" type="text/css">
and the file aa.css should be uploaded to the aa folder inside the stylesheets folder on your remote server.
for some reason I'm getting the dialog "the server is down or not making connections" so here's the FluidGrid.css. Some notes:
- I can see the aa.css sheet in the remote directory and Nancy was looking for fluidgrid.css
- fluidgrid.css belongs to another job (very similar layout, working on both jobs at the same time), I'm sure I messed up with my local root folder set up.
And, I can see below where the margin is speced for left --- see where I bolded text. Is this the problem? After the other problem which is DW was accessing this file on my local drive and I had no idea DW considered it part of the job.
I've been through the tutorials on how to set up job folders and new jobs, but can you recommend one you like? I have stuff all messed up if it's not in the right local folder and I can't see when there is a link going outside my job folder. Granted, this is a mistake I'm making not DW.
here's fluidgrid.css :
@charset "UTF-8";
/* Simple fluid media
Note: Fluid media requires that you remove the media's height and width attributes from the HTML
http://www.alistapart.com/articles/fluid-images/
*/
img, object, embed, video {
max-width: 100%;
}
/* IE 6 does not support max-width so default to width 100% */
.ie6 img {
width:100%;
}
/*
Dreamweaver Fluid Grid Properties
----------------------------------
dw-num-cols-mobile: 5;
dw-num-cols-tablet: 8;
dw-num-cols-desktop: 3;
dw-gutter-percentage: 15;
Inspiration from "Responsive Web Design" by Ethan Marcotte
http://www.alistapart.com/articles/responsive-web-design
and Golden Grid System by Joni Korpi
*/
/* Mobile Layout: 480px and below. */
.gridContainer {
margin-left: auto;
margin-right: auto;
width: 88.626%;
padding-left: 1.1869%;
padding-right: 1.1869%;
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#rule {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#nav {
clear: both;
float: left;
margin-left: 0;
width: 38.3928%;
display: block;
}
#header {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#content {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#aside {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#footer {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
@media only screen and (min-width: 481px) {
.gridContainer {
width: 91.4836%;
padding-left: 0.7581%;
padding-right: 0.7581%;
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#rule {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#nav {
clear: both;
float: left;
margin-left: 0;
width: 23.7569%;
display: block;
}
#header {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#content {
clear: both;
float: left;
margin-left: 0;
width: 61.8784%;
display: block;
}
#aside {
clear: none;
float: left;
margin-left: 1.6574%;
width: 36.464%;
display: block;
}
#footer {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
}
/* Desktop Layout: 769px to a max of 1232px. Inherits styles from: Mobile Layout and Tablet Layout. */
@media only screen and (min-width: 769px) {
.gridContainer {
width: 86.0869%;
max-width: 1232px;
padding-left: 1.9565%;
padding-right: 1.9565%;
margin: auto;
}
#LayoutDiv1 {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#rule {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#nav {
clear: both;
float: left;
margin-left: 0;
width: 30.303%;
display: block;
}
#header {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
#content {
clear: both;
float: left;
margin-left: 0;
width: 65.1515%;
display: block;
}
#aside {
clear: none;
float: left;
margin-left: 4.5454%;
width: 30.303%;
display: block;
}
#footer {
clear: both;
float: left;
margin-left: 0;
width: 100%;
display: block;
}
}
For each project, I create different site definitions in DW. Even though some projects use the same remote server.
I highly recommend using a separate style sheet for your Fluid Grid Content styles. The FGL.css is really for layout only. One misstep with that and the whole thing falls apart.
A live example (view source to see the content.css)
http://alt-web.com/FluidGrid/Fluid.html
Nancy O.
I thought I had just aa.css and the boilerplate.css on this job.
I have spent the last couple hours going over tuts recommended earlier on DW CS5 Beginner Help, http://forums.adobe.com/thread/1150252?tstart=0 Learned some stuff. Will study http://alt-web.com/FluidGrid/Fluid.html and start both jobs over.
Thank you Nancy and John.
Now I have the menu placement worked out fine --- but the white table looks white in my local test but displays green http://aa-can.businesscatalyst.com/ on both safari and chrome.
It should be the opague white rgba(255,255,255,0.8)
I don't mean to burst your bubble, but your menu isn't responsive on mobile devices.
There's no reason to use a table for content unless you're presenting tabular data like a spreadsheet or chart.
#divName {
width: 50%;
margin:0 auto;
background: rgba(255,255,255,0.8)
}
<div id="divName">
Content goes here....
</div>
Nancy O.
North America
Europe, Middle East and Africa
Asia Pacific