keno sta deksia tis selidas

Ερωτήσεις και απαντήσεις σχετικές με την HTML, XHTML και την κατασκευή σελίδων για το Web.

Συντονιστές: WebDev Moderators, Super-Moderators

Απάντηση
stavros_ht
Δημοσιεύσεις: 17
Εγγραφή: 05 Μάιος 2006 00:08

keno sta deksia tis selidas

Δημοσίευση από stavros_ht » 05 Ιούλ 2006 13:02

Ftiaxnw mia istoselida me dreamweaver alla tin selida den mporw na tin gemisw sta deksia [sto dreamweaver]se kapoio shmeio mou tin vgazei apo katw tin eikona...k otan anevazw auti tin selida yparxei aplws ena keno deksia san na einai kommeni i selida...

auto logika einai provlima pou prepei na rithmisw to megethos apo to dreamweaver...alla pws mporw na to kanw auto :question:

thnx

http://www.insomnia-radio.com/test3.html edw i selida
www.hattrick.org
online manager football
www.hattrick.gr/forum ellhniki koinotita

Άβαταρ μέλους
Banavas
Script Master
Δημοσιεύσεις: 1367
Εγγραφή: 21 Νοέμ 2004 20:25
Επικοινωνία:

keno sta deksia tis selidas

Δημοσίευση από Banavas » 05 Ιούλ 2006 18:29

Κατα την άποψή μου η καλύτερη λύση για να μορφοποιήσεις μια σελίδα είναι να χρησιπομοιήσεις πίνακες.
Σου ετοίμασα την σελίδα σου με πίνακες και έχω βάλει περιθώρια με χοντρές γραμμές και διαφορετικά χρώματα για να καταλάβεις πως μπορεί να γίνει.
Με το dreamweaver μπορείς να αλλάξεις τα περιθώρια των πινάκων ώστε να είναι αόρατα στην σελίδα σου.

Κώδικας: Επιλογή όλων

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http&#58;//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http&#58;//www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body &#123;
	background-color&#58; #000000;
&#125;
.style2 &#123;color&#58; #FFFFFF&#125;
a &#123;
	font-size&#58; large;
&#125;
-->
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages&#40;&#41; &#123; //v3.0
  var d=document; if&#40;d.images&#41;&#123; if&#40;!d.MM_p&#41; d.MM_p=new Array&#40;&#41;;
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for&#40;i=0; i<a.length; i++&#41;
    if &#40;a&#91;i&#93;.indexOf&#40;"#"&#41;!=0&#41;&#123; d.MM_p&#91;j&#93;=new Image; d.MM_p&#91;j++&#93;.src=a&#91;i&#93;;&#125;&#125;
&#125;

function MM_findObj&#40;n, d&#41; &#123; //v4.01
  var p,i,x;  if&#40;!d&#41; d=document; if&#40;&#40;p=n.indexOf&#40;"?"&#41;&#41;>0&&parent.frames.length&#41; &#123;
    d=parent.frames&#91;n.substring&#40;p+1&#41;&#93;.document; n=n.substring&#40;0,p&#41;;&#125;
  if&#40;!&#40;x=d&#91;n&#93;&#41;&&d.all&#41; x=d.all&#91;n&#93;; for &#40;i=0;!x&&i<d.forms.length;i++&#41; x=d.forms&#91;i&#93;&#91;n&#93;;
  for&#40;i=0;!x&&d.layers&&i<d.layers.length;i++&#41; x=MM_findObj&#40;n,d.layers&#91;i&#93;.document&#41;;
  if&#40;!x && d.getElementById&#41; x=d.getElementById&#40;n&#41;; return x;
&#125;

function MM_nbGroup&#40;event, grpName&#41; &#123; //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if &#40;event == "init" && args.length > 2&#41; &#123;
    if &#40;&#40;img = MM_findObj&#40;args&#91;2&#93;&#41;&#41; != null && !img.MM_init&#41; &#123;
      img.MM_init = true; img.MM_up = args&#91;3&#93;; img.MM_dn = img.src;
      if &#40;&#40;nbArr = document&#91;grpName&#93;&#41; == null&#41; nbArr = document&#91;grpName&#93; = new Array&#40;&#41;;
      nbArr&#91;nbArr.length&#93; = img;
      for &#40;i=4; i < args.length-1; i+=2&#41; if &#40;&#40;img = MM_findObj&#40;args&#91;i&#93;&#41;&#41; != null&#41; &#123;
        if &#40;!img.MM_up&#41; img.MM_up = img.src;
        img.src = img.MM_dn = args&#91;i+1&#93;;
        nbArr&#91;nbArr.length&#93; = img;
    &#125; &#125;
  &#125; else if &#40;event == "over"&#41; &#123;
    document.MM_nbOver = nbArr = new Array&#40;&#41;;
    for &#40;i=1; i < args.length-1; i+=3&#41; if &#40;&#40;img = MM_findObj&#40;args&#91;i&#93;&#41;&#41; != null&#41; &#123;
      if &#40;!img.MM_up&#41; img.MM_up = img.src;
      img.src = &#40;img.MM_dn && args&#91;i+2&#93;&#41; ? args&#91;i+2&#93; &#58; &#40;&#40;args&#91;i+1&#93;&#41;? args&#91;i+1&#93; &#58; img.MM_up&#41;;
      nbArr&#91;nbArr.length&#93; = img;
    &#125;
  &#125; else if &#40;event == "out" &#41; &#123;
    for &#40;i=0; i < document.MM_nbOver.length; i++&#41; &#123;
      img = document.MM_nbOver&#91;i&#93;; img.src = &#40;img.MM_dn&#41; ? img.MM_dn &#58; img.MM_up; &#125;
  &#125; else if &#40;event == "down"&#41; &#123;
    nbArr = document&#91;grpName&#93;;
    if &#40;nbArr&#41;
      for &#40;i=0; i < nbArr.length; i++&#41; &#123; img=nbArr&#91;i&#93;; img.src = img.MM_up; img.MM_dn = 0; &#125;
    document&#91;grpName&#93; = nbArr = new Array&#40;&#41;;
    for &#40;i=2; i < args.length-1; i+=2&#41; if &#40;&#40;img = MM_findObj&#40;args&#91;i&#93;&#41;&#41; != null&#41; &#123;
      if &#40;!img.MM_up&#41; img.MM_up = img.src;
      img.src = img.MM_dn = &#40;args&#91;i+1&#93;&#41;? args&#91;i+1&#93; &#58; img.MM_up;
      nbArr&#91;nbArr.length&#93; = img;
  &#125; &#125;
&#125;
//-->
</script>
</head>

<body onload="MM_preloadImages&#40;'/insomnia-radio/Connections/stavros%20site/button1over.png','button2over.png','button3over.png','button4over.png','button5over.png','button6over.png','button7over.png','button8over.png'&#41;">
<table border="2" align="center" cellpadding="0" cellspacing="0" bordercolor="#FF0000">
  <tr> 
    <td><table border="3" cellpadding="0" cellspacing="0" bordercolor="#00FF00">
        <tr> 
          <td><img src="kussi&#40;1&#41;.jpg" width="160" height="162" longdesc="kussi&#40;1&#41;.jpg" /></td>
          <td><img src="sterren.JPG" width="401" height="162" longdesc="/insomnia-radio/Connections/stavros site/sterren.JPG" /></td>
          <td><img src="dolfijn.jpg" alt="a" width="160" height="162" longdesc="dolfijn.jpg" /></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td>
<hr /></td>
  </tr>
  <tr> 
    <td height="124"><table width="100%" border="3" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
        <tr> 
          <td width="18%"><embed src="http&#58;//www.clocklink.com/clocks/0008-Blue.swf?TimeZone=GMT0300" width="132" height="114" wmode="transparent" type="application/x-shockwave-flash"></embed></td>
          <td width="68%">&nbsp;</td>
          <td width="14%"><embed src="http&#58;//www.clocklink.com/clocks/0008-orange.swf?TimeZone=GMT0200" width="126" height="114" wmode="transparent" type="application/x-shockwave-flash"></embed></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td><table width="100%" border="3" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
          <td width="18%"><table border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button1up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button1up','button1over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button1up.png" alt="" name="button1up" width="130" height="22" border="0" id="button1up" onload="" /></a></td>
              </tr>
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button2up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button2up','button2over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button2up.png" alt="" name="button2up" border="0" id="button2up" onload="" /></a></td>
              </tr>
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button3up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button3up','button3over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button3up.png" alt="" name="button3up" border="0" id="button3up" onload="" /></a></td>
              </tr>
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button4up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button4up','button4over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button4up.png" alt="" name="button4up" border="0" id="button4up" onload="" /></a></td>
              </tr>
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button5up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button5up','button5over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button5up.png" alt="" name="button5up" border="0" id="button5up" onload="" /></a></td>
              </tr>
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button6up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button6up','button6over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button6up.png" alt="" name="button6up" border="0" id="button6up" onload="" /></a></td>
              </tr>
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button7up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button7up','button7over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button7up.png" alt="" name="button7up" border="0" id="button7up" onload="" /></a></td>
              </tr>
              <tr> 
                <td><a href="javascript&#58;;" target="_top" onclick="MM_nbGroup&#40;'down','group1','button8up','',1&#41;" onmouseover="MM_nbGroup&#40;'over','button8up','button8over.png','',1&#41;" onmouseout="MM_nbGroup&#40;'out'&#41;"><img src="button8up.png" alt="" name="button8up" border="0" id="button8up" onload="" /></a></td>
              </tr>
            </table></td>
          <td width="82%">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
<h1>&nbsp;</h1>
<p>&nbsp; </p>
</body>

</html>

Happy coding....
Μάρκος
http://lasernet.gr

stavros_ht
Δημοσιεύσεις: 17
Εγγραφή: 05 Μάιος 2006 00:08

keno sta deksia tis selidas

Δημοσίευση από stavros_ht » 06 Ιούλ 2006 02:02

thnx file :) ontws etsi opws les einai kalutera giati alliws den vriskw akri :)
www.hattrick.org
online manager football
www.hattrick.gr/forum ellhniki koinotita

pagourix
Δημοσιεύσεις: 20
Εγγραφή: 19 Αύγ 2005 01:50

keno sta deksia tis selidas

Δημοσίευση από pagourix » 12 Οκτ 2006 13:29

body{ text-align: center; } #wrapper{ margin: auto; }

Step 2

Put this code around your layout:

<div id="wrapper">
<!-- Rest of layout here -->
</div>
βοηθάει στην περίπτωση μας?

Απάντηση

Επιστροφή στο “HTML και XHTML”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 0 επισκέπτες