Avatar billede mstitdk Novice
20. januar 2010 - 20:15 Der er 6 kommentarer og
1 løsning

Concrete5 > Fold down menu

Hey hey

jeg har fundet dette fantastiske CMS.... rigtig nem at arbejde med.....

Men er der nogen her inde i dette fora, der kender til sysemet og ved noget om hvordan man laver ting til dette...

Jeg vil gerne have hjælpe til at lave nogle CSS styret menuer til min hjemmeside....

Det hjælp jeg gerne vil have er. Jeg har nogle pkt. med under sider der til.

hvordan laver man sådan når man klikker på et overordnet emne niv.0 så kommer niv.1 frem altså alle under siderne til det given emne man har valgt....

Mvh Mathias
Avatar billede intenz Novice
21. januar 2010 - 15:15 #1
Der er nok flere der kender systemet her:
http://www.concrete5.org/community/forums/
Avatar billede mstitdk Novice
21. januar 2010 - 16:01 #2
det er ganske udmærket det forum. men det er lidt nemmer at forklare ting på dansk jo :-P
Avatar billede intenz Novice
21. januar 2010 - 16:30 #3
Ja :)

Men det er ikke et af de 'almindelige' CMS systemer som folk bruger som f.eks. joomla og typo3. Så det er nok lidt begrænset hvor mange der har erfaring med det :)
Avatar billede mstitdk Novice
21. januar 2010 - 22:11 #4
ja det er rigtig nok. det er ellers et ekstrem nemt program at arbejde med
Avatar billede mstitdk Novice
21. januar 2010 - 22:27 #5
jeg har fundet ud af at lave styre menuen med CSS. men jeg kan ikke helt finde ud af at få min menu til at gøre som jeg vil

Men det kan være du kan hjælpe mig... det er sikkert simpelt.

[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.thrColFixHdr #sidebar1 { width: 180px; }
.thrColFixHdr #sidebar2 { width: 190px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
.thrColFixHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<title>tetet</title></head>
<style type="text/css">
<!--
@charset "utf-8";
body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #091b6a;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
}
#Central {
    width: 900px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
}
#header {
    height: 200px;
}
#header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
#nav {
}
#sidebar1 {
    float: left; /* since this element is floated, a width must be given */
    width: 165px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    background: #EBEBEB; /* padding keeps the content of the div away from the edges */
    padding-top: 15px;
    padding-right: 10px;
    padding-bottom: 15px;
    padding-left: 5px;
}
#sidebar2 {
    float: right; /* since this element is floated, a width must be given */
    width: 160px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */
}
#mainContent {
    margin: 0 200px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
    padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}
.#footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    background: #000000;
    height: 10px;
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
.footer {
    font-family: Tahoma;
    color: #FFF;
    font-size: 12px;
}
#nav .nav-header .nav {
    color: #F00;
}
 
/* Nav CSS*/
#Central #sidebar1 ul {
  margin: 0; padding: 0;
  list-style:none;
}
#Central #sidebar1 a:link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}
#Central #sidebar1 a:active {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}
#Central #sidebar1 a:hover {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    font-size: 13px;
}
#Central #sidebar1 a:visited {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}
/* Nav undermenuer */
#Central #sidebar1 li ul li a:link {
    color: #000;
    font-weight: bold;
    font-size: 11px;
}
#Central #sidebar1 li ul li a:active {
    color: #000;
    font-weight: bold;
    font-size: 11px;
}
#Central #sidebar1 li ul li a:hover {
    color: #000;
    font-weight: bold;
    font-size: 11px;
    font-style: normal;
}
#Central #sidebar1 li ul li a:visited {
    color: #000;
    font-weight: bold;
    font-size: 11px;
}
/* Nav undermenuer slut */
/* Nav CSS slut*/



-->
</style>

<body>

<div id="Central">
  <div id="header">
    <!-- end #header -->
  </div>
  <div id="nav"></div>
  <div id="sidebar1"><a class="nav-selected nav-path-selected" href="#">Start</a>
    <ul class="nav"><li><a href="#">Nyheder</a><ul><li><a href="#">Nyheder</a></li></ul></li><li><a href="#">Løkken Brandvæsen</a><ul><li><a href="#">Stationen</a></li><li><a href="#">Her bor vi</a></li><li><a href="#">Slukningsområde</a></li></ul></li><li><a href="#">Uddannelse</a><ul><li><a href="#">Bliv brandmand</a></li></ul></li><li><a href="#">Køretøjer</a><ul><li><a href="#">Autosprøjte 1017</a></li><li><a href="#">Tankvogn 2017</a></li><li><a href="#">HSE 1023</a></li><li><a href="#">Redningsbåd 0001</a></li></ul></li><li><a href="#">Udrykninger</a><ul><li><a href="#">2010</a></li></ul></li><li><a href="#">Historie</a><ul><li><a href="#">De større indsatse</a></li><li><a href="#">Stationens historie</a></li><li><a href="#">Stations tidl. placeringer</a></li></ul></li><li><a href="#">Billeder</a><ul><li><a href="#">Indsatse</a></li></ul></li><li><a href="#">Links</a><ul><li><a href="#">Brandstationer i Nordjylland</a></li></ul></li><li><a href="#">Kontakt</a><ul><li><a href="/kontakt/om/">Kontakt os</a></li></ul></li><li><a href="#">Gæstebog</a><ul>
    <li><a href="#">Gæstebog</a></li></ul></li></ul>
  </div>

  <div id="sidebar2">
    <!-- end #sidebar2 -->
  </div>
  <div id="mainContent">
    <p>&nbsp;</p>
    <!-- end #mainContent -->
  </div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
  <div id="footer">
    <p class="footer">&nbsp;</p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
[/code]

Hvordan får jeg min menu til at opføre sig som denne menu på sindalbrand.dk???
Avatar billede mstitdk Novice
21. januar 2010 - 22:28 #6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.thrColFixHdr #sidebar1 { width: 180px; }
.thrColFixHdr #sidebar2 { width: 190px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
.thrColFixHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<title>tetet</title></head>
<style type="text/css">
<!--
@charset "utf-8";
body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #091b6a;
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
}
#Central {
    width: 900px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center on the body element. */
}
#header {
    height: 200px;
}
#header h1 {
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
#nav {
}
#sidebar1 {
    float: left; /* since this element is floated, a width must be given */
    width: 165px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    background: #EBEBEB; /* padding keeps the content of the div away from the edges */
    padding-top: 15px;
    padding-right: 10px;
    padding-bottom: 15px;
    padding-left: 5px;
}
#sidebar2 {
    float: right; /* since this element is floated, a width must be given */
    width: 160px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
    background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 10px 15px 20px; /* padding keeps the content of the div away from the edges */
}
#mainContent {
    margin: 0 200px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
    padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}
.#footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    background: #000000;
    height: 10px;
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
.footer {
    font-family: Tahoma;
    color: #FFF;
    font-size: 12px;
}
#nav .nav-header .nav {
    color: #F00;
}
 
/* Nav CSS*/
#Central #sidebar1 ul {
  margin: 0; padding: 0;
  list-style:none;
}
#Central #sidebar1 a:link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}
#Central #sidebar1 a:active {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}
#Central #sidebar1 a:hover {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    font-size: 13px;
}
#Central #sidebar1 a:visited {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}
/* Nav undermenuer */
#Central #sidebar1 li ul li a:link {
    color: #000;
    font-weight: bold;
    font-size: 11px;
}
#Central #sidebar1 li ul li a:active {
    color: #000;
    font-weight: bold;
    font-size: 11px;
}
#Central #sidebar1 li ul li a:hover {
    color: #000;
    font-weight: bold;
    font-size: 11px;
    font-style: normal;
}
#Central #sidebar1 li ul li a:visited {
    color: #000;
    font-weight: bold;
    font-size: 11px;
}
/* Nav undermenuer slut */
/* Nav CSS slut*/



-->
</style>

<body>

<div id="Central">
  <div id="header">
    <!-- end #header -->
  </div>
  <div id="nav"></div>
  <div id="sidebar1"><a class="nav-selected nav-path-selected" href="#">Start</a>
    <ul class="nav"><li><a href="#">Nyheder</a><ul><li><a href="#">Nyheder</a></li></ul></li><li><a href="#">Løkken Brandvæsen</a><ul><li><a href="#">Stationen</a></li><li><a href="#">Her bor vi</a></li><li><a href="#">Slukningsområde</a></li></ul></li><li><a href="#">Uddannelse</a><ul><li><a href="#">Bliv brandmand</a></li></ul></li><li><a href="#">Køretøjer</a><ul><li><a href="#">Autosprøjte 1017</a></li><li><a href="#">Tankvogn 2017</a></li><li><a href="#">HSE 1023</a></li><li><a href="#">Redningsbåd 0001</a></li></ul></li><li><a href="#">Udrykninger</a><ul><li><a href="#">2010</a></li></ul></li><li><a href="#">Historie</a><ul><li><a href="#">De større indsatse</a></li><li><a href="#">Stationens historie</a></li><li><a href="#">Stations tidl. placeringer</a></li></ul></li><li><a href="#">Billeder</a><ul><li><a href="#">Indsatse</a></li></ul></li><li><a href="#">Links</a><ul><li><a href="#">Brandstationer i Nordjylland</a></li></ul></li><li><a href="#">Kontakt</a><ul><li><a href="/kontakt/om/">Kontakt os</a></li></ul></li><li><a href="#">Gæstebog</a><ul>
    <li><a href="#">Gæstebog</a></li></ul></li></ul>
  </div>

  <div id="sidebar2">
    <!-- end #sidebar2 -->
  </div>
  <div id="mainContent">
    <p>&nbsp;</p>
    <!-- end #mainContent -->
  </div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
  <div id="footer">
    <p class="footer">&nbsp;</p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
Avatar billede mstitdk Novice
14. februar 2010 - 12:36 #7
Fandt svaret hos

DITEK.DK
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester