Avatar billede viuf Juniormester
20. april 2008 - 15:12 Der er 3 kommentarer og
1 løsning

tilrettelse af side

Hej
Lavet side:
www.tfc98.dk

Lavet iframe i midten, hvor ting popper op ved tryk i menupunkter.
Men det står ikke helt i midten (det hele er rykket lidt til venstre) og det irretere mig. Har prøvet at tjekke alt men kan ikke finde ud af det.
Er der nogen der kan hjælpe??


Kode:
<!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=iso-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>TFC 98</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body  {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    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;
    background-color: #99FF99;
}

/* Tips for Elastic layouts
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.thrColElsHdr #container {
    width: 48em;
    margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
    border: 1px solid #000000;
    text-align: center; /* this overrides the text-align: center on the body element. */
    background-color: #99FF99;
}
.thrColElsHdr #header {
    padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
    background-color: #99FF99;
}
.thrColElsHdr #header h1 {
    background-color: #99FF99;
    padding-top: 0px;
    padding-right: 0;
    padding-bottom: 0px;
    padding-left: 0;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

/* Tips for sidebar1:
1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColElsHdr #sidebar1 p" rule.
*/
.thrColElsHdr #sidebar1 {
    float: left;
    width: 13em; /* top and bottom padding create visual space within this div */
    background-color: #99FF99;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #FFFFFF;
    padding-top: 15px;
    padding-right: 0;
    padding-bottom: 15px;
    padding-left: 0;
    margin-top: 300px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}
.thrColElsHdr #sidebar2 {
    float: right;
    width: 8em; /* since this element is floated, a width must be given */
    background: #EBEBEB; /* top and bottom padding create visual space within this div */
    padding-top: 15px;
    padding-right: 0;
    padding-bottom: 15px;
    padding-left: 0;
    margin-right: 2px;
    margin-left: 5px;
}
.thrColElsHdr #sidebar1 h3, .thrColElsHdr #sidebar1 p, .thrColElsHdr #sidebar2 p, .thrColElsHdr #sidebar2 h3 {
    margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    margin-right: 10px;
}

/* Tips for mainContent:
1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
*/
.thrColElsHdr #mainContent {
    background-color: #FFFFFF;
    width: auto;
    margin-top: 0;
    margin-right: 8.5em;
    margin-bottom: 0;
    margin-left: 8.2em;
}
.thrColElsHdr #footer {
    padding: 0 10px;
    background-color: #99FF99;
}
.thrColElsHdr #footer p {
    margin: 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    padding-top: 0px;
    padding-right: 0;
    padding-bottom: 10px;
    padding-left: 0;
}

/* Miscellaneous classes for reuse */
.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;
}
.style9 {
    font-size: medium
}
.style12 {
    font-size: small;
    font-weight: bold;
}
.style13 {
    font-size: x-small;
    background-position: center center;
    text-align: center;
    width: 65%;
}
.style14 {
    font-size: xx-small
}
.style15 {
    font-size: medium;
    font-weight: bold;
    font-family: "Bodoni MT Black", "Cooper Black";
}
.style16 {font-size: xx-small; font-weight: bold; }
.style17 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style21 {font-size: large; }
-->
</style>
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColElsHdr #sidebar1, .thrColElsHdr #sidebar2 { padding-top: 30px; }
.thrColElsHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->





</head>

<body class="thrColElsHdr">
<!-- DO NOT MOVE! The following AllWebMenus linking code section must always be placed right AFTER the BODY tag-->
<!-- ******** BEGIN ALLWEBMENUS CODE FOR menu1 ******** -->
<script type="text/javascript">var MenuLinkedBy="AllWebMenus [4]",awmMenuName="menu1",awmBN="730";awmAltUrl="";</script><script charset="UTF-8" src="menu1.js" type="text/javascript"></script><script type="text/javascript">awmBuildMenu();</script>
<!-- ******** END ALLWEBMENUS CODE FOR menu1 ******** -->

<!-- ******** BEGIN ALLWEBMENUS CODE FOR menu2 ******** -->
<script type="text/javascript">var MenuLinkedBy="AllWebMenus [4]",awmMenuName="menu2",awmBN="728";awmAltUrl="";</script><script charset="UTF-8" src="menu2.js" type="text/javascript"></script><script type="text/javascript">awmBuildMenu();</script>
<!-- ******** END ALLWEBMENUS CODE FOR menu2 ******** -->










<!-- ******** BEGIN ALLWEBMENUS CODE FOR menu ******** -->
<script type="text/javascript">var MenuLinkedBy="AllWebMenus [4]",awmMenuName="menu",awmBN="728";awmAltUrl="";</script><script charset="UTF-8" src="menu.js" type="text/javascript"></script><script type="text/javascript">awmBuildMenu();</script>
<!-- ******** END ALLWEBMENUS CODE FOR menu ******** -->

























<div id="container">
  <div id="header">
    <div align="center">
            <div id="layer1" style="width:108px; height:80px; position:absolute; left:64%; top:-6px; z-index:1;">
              <p align="center"><img src="fodbold.gif" width="101" height="80" border="0"></p>
            </div>
      <p>&nbsp;</p>
            <p align="center"><img src="tfcmenu.gif" alt="" width="740" height="113" /></p>
            <p align="center">&nbsp;</p>
            <p align="center">      </p>
      <p>&nbsp;</p>
    </div>
  </div>
  <div id="sidebar1">
  <!-- Start på JS stats kode til ministatistik -->
<script language="JavaScript"  type="text/javascript" src="http://zipstat.dk/zipstat/jsvars.php?brugernavn=vuffivoom&amp;type=ministatistik">
</script>
<!-- Slut på JS stats kode til ministatistik -->

<!-- Start på ZIP Stat ministatistik -->
<table align="center"cellpadding=0 cellspacing=0 style="border: thin black solid; background-color: white; color: black; font-size : 12px; font-family: sans-serif; text-align: left;
">
<tr><td colspan=2 style="background-color: #33CC66; border-bottom: thin solid black; font-size : 14px; text-align: center;
"><a href="http://www.zipstat.dk" style="color: black; text-decoration: none;
"target="_top">ZIP Stat</a>
<script language="JavaScript" type="text/javascript">
<!--
document.write("<"+"/td><"+"/tr><tr><td>Hits:<"+"/td><td style=\"text-align: right;\">"+taellere[denne_taellers_nr]);
document.write("<"+"/td><"+"/tr><tr><td>Hits i alt:<"+"/td><td style=\"text-align: right;\">"+hits_siden_2);
document.write("<"+"/td><"+"/tr><tr><td>Hits/gæst:<"+"/td><td style=\"text-align: right;\">"+hits_pr_bruger);
document.write("<"+"/td><"+"/tr><tr><td>Hits/dag:<"+"/td><td style=\"text-align: right;\">"+hits_pr_dag);
document.write("<"+"/td><"+"/tr><tr><td>Hits/måned:<"+"/td><td style=\"text-align: right;\">"+hits_pr_maaned_3mdr);
document.write("<"+"/td><"+"/tr><tr><td>Online:<"+"/td><td style=\"text-align: right;\">"+personer_paa_siden_nu);
//-->
</script>
</td></tr><tr><td colspan=2><a href="http://zipstat.dk/zipstat/stats.php?brugernavn=vuffivoom" style="color: black;"target="_top">Flere...</a></td></tr>
</table>

<!-- Slut på ZIP Stat ministatistik -->

<!-- Start på ZIP Stat kode -->
<script language="JavaScript" type="text/javascript">
<!--
far="Andre"; jav="Ved ikke"; skh="Andre"; jav=navigator.javaEnabled();
ref=""+escape(document.referrer); nav=navigator.appName;
if (navigator.appName == "Netscape" && (navigator.appVersion.charAt(0) == "2" || navigator.appVersion.charAt(0) == "3")) {skriv=false;} else {skriv=true;}
if (skriv==true) { skh=screen.width + "x" + screen.height;
if (nav != "Netscape"){far=screen.colorDepth;} else {far=screen.pixelDepth;}
puri="brugernavn=vuffivoom&amp;version=150&amp;ssto="+skh+"&amp;referer="+ref+"&amp;colors="+far+"&amp;java="+jav+"&amp;js=true&amp;billed=trans&amp;taelnavn=";
document.write("<a href=\"http://zipstat.dk/zipstat/stats.php?brugernavn=vuffivoom\" target=\"_top\">");
document.write("<img height=\"1\" width=\"1\" border=\"0\" src=\"http://zipstat.dk/zipstat/zipstat.php?"+puri+"\" alt=\"\" align=left><\/a>"); }
//-->
</script> <noscript>
<a href="http://zipstat.dk/zipstat/stats.php?brugernavn=vuffivoom" target="_top">
<img height="1" width="1" border="0" src="zipstat.php" alt="" align=left></a>
</noscript>
<!-- Slut på ZIP Stat kode -->
    <p>.</p>
    <p>.</p>
    <p>.</p>
    <p>.</p>
    <p>.</p>
    <p>.</p>
    <p>.</p>
    <p align="center" class="style9">&nbsp;</p>
    <p>.</p>
    <p align="center">&nbsp;</p>
  <!-- end #sidebar1 --></div>
  <div id="sidebar2">
    <p align="center" class="style15">SENESTE NYT</p>
    <p align="center" class="style12"><strong>--</strong></p>
    <p class="style12" style="line-height:100%; margin-top:0; margin-bottom:0;">Træningstider på græs</p>
        <p class="style12" style="line-height:100%; margin-top:0; margin-bottom:0;"> man + onsdag</p>
        <p class="style12" style="line-height:100%; margin-top:0; margin-bottom:0;"> kl. 17-18.30 </p>
    <p align="center" class="style12"><strong>--</strong></p>
    <h1 align="center" class="style12">Billeder fra Taastrup FC´s bredestævne II</h1>
    <h1 align="center" class="style12"><strong>--</strong></h1>
    <h1 align="center" class="style12">Forårskampe er rettet til(ændringer er med rødt)</h1>
    <p align="center" class="style16">se under kampprogram</p>
    <p align="center" class="style12"><strong>--</strong></p>
    <p align="center" class="style12">Hovedpunkter fra  forældremødet den 5. marts 2008</p>
    <p align="center" class="style16">se under nyheder</p>
    <p align="center" class="style12"><strong>--</strong></p>
    <p align="center" class="style12"><strong>Udkast til forårskampe</strong></p>
    <p align="center" class="style16">se under holdene</p>
    <p align="center" class="style12"><strong>--</strong></p>
    <p align="center" class="style12"><strong>Fodboldskole</strong></p>
    <p align="center" class="style16">se under nyheder</p>
    <p align="center" class="style12"><strong>--</strong></p>
    <p align="center" class="style12"><strong>HUSK !!</strong></p>
    <p align="center" class="style12"><strong>Forældremøde d. 5 marts kl. 19.00 på Nyhøj</strong></p>
    <p align="center" class="style12"><strong>--</strong></p>
    <p align="center" class="style12"><strong>Trupinddeling</strong></p>
    <p align="center" class="style16">se under nyheder</p>
    <p align="center" class="style12"><strong>--</strong></p>
    <p align="center" class="style12"><strong>TFC-shoppen har fået en hjemmeside</strong></p>
    <p align="center" class="style12"><strong><a href="http://www.tavlo.dk/tfcshoppen/start.htm" target="_blank" class="style14">link</a></strong></p>
    <p align="center" class="style12"><strong>--</strong></p>
    <h3>&nbsp;</h3>
  <!-- end #sidebar2 --></div>
  <p align="center">
    <iframe src="http://tfc98.dk/tfc98ny/hjemmeside/index.htm" name="iframe" width="504" height="800" align="right" frameborder="0" class="style13"></iframe>
 
  <div align="center"></div>
  <div id="footer"> 
  </div>
</div>
</body>
</html>
Avatar billede viuf Juniormester
21. april 2008 - 08:39 #2
Prøvet at lave en ny index-fil, men kunne ikke se det hjalp noget
Undersiderne er lavet i word2007, kan det være det??
Avatar billede olebole Juniormester
21. april 2008 - 23:20 #3
Hvis du mener den lille smule ekstra luft i højre side, så er det, hvad IE altid afsætter til evt. scrollbar. Siden er fint centreret i Firefox  =)
Avatar billede victor22 Nybegynder
11. august 2008 - 00:07 #4
<style type="text/css">
i css styles file - kan du justere og fjerne den lille kant der er imellem. i Body del og Loyaut delen.
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
Kurser inden for grundlæggende programmering

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