HighDots Forums  

CCS styles and templates

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CCS styles and templates in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John S E
 
Posts: n/a

Default CCS styles and templates - 11-26-2004 , 08:29 AM






I have made a template for my site. However when I create a new html page from
this template all of the text on the page ignores my ccs styles. However, the
styles are recognised when previewed and the site looks perfect in the bowser.
It is just that it is really awkward to work on the webpage when the fonts are
the wrong size (tables are stretched etc). Is there a cure for this? many
thanks John


Reply With Quote
  #2  
Old   
Dan Vendel *GOF*
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 08:56 AM






John S E wrote:

Quote:
I have made a template for my site. However when I create a new html page from
this template all of the text on the page ignores my ccs styles. However, the
styles are recognised when previewed and the site looks perfect in the bowser.
It is just that it is really awkward to work on the webpage when the fonts are
the wrong size (tables are stretched etc). Is there a cure for this? many
thanks John

Can you please show the code to the entire template?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)


Reply With Quote
  #3  
Old   
Pablo
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 09:04 AM



<Shut up Swedish git./>

Hi John

Have you created id's for your tables?

Pablo



"Dan Vendel *GOF*" <see_my_signature_ (AT) _the_bottom_of_the_po (DOT) st> a écrit dans
le message de news: co7cld$q3$7 (AT) forums (DOT) macromedia.com...
Quote:
John S E wrote:

I have made a template for my site. However when I create a new html
page from
this template all of the text on the page ignores my ccs styles.
However, the
styles are recognised when previewed and the site looks perfect in the
bowser.
It is just that it is really awkward to work on the webpage when the
fonts are
the wrong size (tables are stretched etc). Is there a cure for this?
many
thanks John


Can you please show the code to the entire template?

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml
Call or chat me via Skype ID: danvendel, but DON'T ask questions that
you can ask here! (get Skype at http://skype.com)



Reply With Quote
  #4  
Old   
John S E
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 09:11 AM



heres a page i made from the template....

http://www.dominosurf.com/test3.html

thanks

Reply With Quote
  #5  
Old   
Pablo
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 09:40 AM



Okay John

<style type="text/css" media="all">
<!--
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: center;
min-width: 740px;
}
#maincontent {
}
#wrapper {
width: 740px;
text-align: left;
margin: 0px auto;
position: relative;
background-color: #FFFFFF;
}
h2.first {margin: 0; color: #FFFFFF; font-size: 10px;}
#p7swapmenu {
border: 1px solid;
border-color: #333366;
background-color: #CCCCCC;
left: 626px;
padding: 4px;
position: absolute;
top: 84px;
width: 110px;
}
#main {
border: 1px solid;
border-color: #333366;
left: 218px;
padding: 0px;
position: absolute;
top: 84px;
width: 400px;

}
#right {
border: 1px solid;
border-color: #333366;
left: 0px;
padding: 0px;
position: absolute;
top: 84px;
width: 210px;

}

#p7swapmenu ul {margin: 0px; padding: 0px;}
#p7swapmenu li {margin: 0px; padding: 0px; list-style-type: none;}

..closed a, .open a {
background-repeat: no-repeat;
background-position: 3px 50%;
color: #000000;
display: block;
font-size: 11px;
padding: 2px 0px 2px 2px;
text-decoration: none;
}
..closed a:hover, .open a:hover {
background-color: transparent;
color: #FFFFFF;
}
..closed a {
background-image: url(menplus.gif);
}
..open a {
background-image: url(menminus.gif);
}
..closed ul a, .open ul a, .open ul a:hover {
background-color: transparent;
background-position: 0% 50%;
border: 0;
color:#000000;
font-size: 10px;
font-weight:normal;
padding: 1 1 1 1px;
margin: 0 0 0 16px;
}
..open ul a:hover {
background-color: transparent;
color: #FFFFFF;
}
#p7current {font-weight: bold;}
-->
</style>

Then this:


<body>
<div class="wrapper">
To
<body><div id="wrapper">

Then strip your font tags. Create an external .css file and external .js
file and link to them, I can't see why you need this to be a template but
thats up to you, you also have some redundant css.



"John S E" <webforumsuser (AT) macromedia (DOT) com> a écrit dans le message de news:
co7dhp$cps$1 (AT) forums (DOT) macromedia.com...
Quote:
heres a page i made from the template....

http://www.dominosurf.com/test3.html

thanks



Reply With Quote
  #6  
Old   
Pablo
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 09:46 AM



You should clear your table heights too; just let everything flow, you'll
get the hang of it soon.


"Pablo" <dunno (AT) dunno (DOT) com> a écrit dans le message de news:
co7f8o$ek3$1 (AT) forums (DOT) macromedia.com...
Quote:
Okay John

style type="text/css" media="all"
!--
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: center;
min-width: 740px;
}
#maincontent {
}
#wrapper {
width: 740px;
text-align: left;
margin: 0px auto;
position: relative;
background-color: #FFFFFF;
}
h2.first {margin: 0; color: #FFFFFF; font-size: 10px;}
#p7swapmenu {
border: 1px solid;
border-color: #333366;
background-color: #CCCCCC;
left: 626px;
padding: 4px;
position: absolute;
top: 84px;
width: 110px;
}
#main {
border: 1px solid;
border-color: #333366;
left: 218px;
padding: 0px;
position: absolute;
top: 84px;
width: 400px;

}
#right {
border: 1px solid;
border-color: #333366;
left: 0px;
padding: 0px;
position: absolute;
top: 84px;
width: 210px;

}

#p7swapmenu ul {margin: 0px; padding: 0px;}
#p7swapmenu li {margin: 0px; padding: 0px; list-style-type: none;}

.closed a, .open a {
background-repeat: no-repeat;
background-position: 3px 50%;
color: #000000;
display: block;
font-size: 11px;
padding: 2px 0px 2px 2px;
text-decoration: none;
}
.closed a:hover, .open a:hover {
background-color: transparent;
color: #FFFFFF;
}
.closed a {
background-image: url(menplus.gif);
}
.open a {
background-image: url(menminus.gif);
}
.closed ul a, .open ul a, .open ul a:hover {
background-color: transparent;
background-position: 0% 50%;
border: 0;
color:#000000;
font-size: 10px;
font-weight:normal;
padding: 1 1 1 1px;
margin: 0 0 0 16px;
}
.open ul a:hover {
background-color: transparent;
color: #FFFFFF;
}
#p7current {font-weight: bold;}
--
/style

Then this:


body
div class="wrapper"
To
body><div id="wrapper"

Then strip your font tags. Create an external .css file and external .js
file and link to them, I can't see why you need this to be a template but
thats up to you, you also have some redundant css.



"John S E" <webforumsuser (AT) macromedia (DOT) com> a écrit dans le message de news:
co7dhp$cps$1 (AT) forums (DOT) macromedia.com...
heres a page i made from the template....

http://www.dominosurf.com/test3.html

thanks





Reply With Quote
  #7  
Old   
John S E
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 10:14 AM



Wow, thanks for all this, I'll take a look and try and get my head around it.
I need to make it as a template so that i can update and add to all the links
in the menu as the site grows - rather than ahving to do them to all pages....
unless theres another way to update them all? thanks so much john


Reply With Quote
  #8  
Old   
Kramerica Industries
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 10:25 AM



Quote:
unless theres another way to update them all?<br> There is... You are better
off using Server Side Includes (SSI) or another server side language your host
may support (such as PHP) which will include your page dynamically.



Reply With Quote
  #9  
Old   
John S E
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 10:33 AM



I really don't know anything about this?

is it quite straight forward?

Reply With Quote
  #10  
Old   
Pablo
 
Posts: n/a

Default Re: CCS styles and templates - 11-26-2004 , 10:53 AM



Use templates to begin with, get this site right then start delving into the
unknown





"John S E" <webforumsuser (AT) macromedia (DOT) com> a écrit dans le message de news:
co7ibs$hm4$1 (AT) forums (DOT) macromedia.com...
Quote:
I really don't know anything about this?

is it quite straight forward?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.