php.de

Zurück   php.de > Webentwicklung > HTML, Usability und Barrierefreiheit

HTML, Usability und Barrierefreiheit Themen rund um Textauszeichnung, Formatierung, Barrierefreiheit und Usability.

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 15.10.2005, 12:09  
Neuer Benutzer
 
Registriert seit: 08.06.2005
Beiträge: 25
Wimme
Standard CSS Layout macht Probleme mit Firefox

Hallo! Also ich bin hier grad ein bisschen am rumspielen mit CSS. Habe damit so gut wie nix gemacht und sammle grad erste Erfahrungen. Ich habe es auch ungefähr so hingekriegt wie ich es haben wollte - aber leider nur mit dem IE. Der Firefox stellt es anders da. Ich weiß nicht, warum der nicht mein margin beachtet. Jedenfalls nciht für die rechte Seite!
Also hier ist mein CSS Layout:
Code:
*
{
font-size: 12px;
}

html
{
height                 :100%;
}

body
{
  color                : #FFFFFF;  
  height               :  100%;
  background           : #344566; 
  background-attachment: fixed;
  background-repeat    : no-repeat;
  background-position  : top;
  SCROLLBAR-FACE-COLOR: #cfd4d9; 
  SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; 
  SCROLLBAR-SHADOW-COLOR: ##636c75; 
  SCROLLBAR-3DLIGHT-COLOR: #666666; 
  SCROLLBAR-ARROW-COLOR: #666666; 
  SCROLLBAR-TRACK-COLOR: #BFC2CA; 
  SCROLLBAR-DARKSHADOW-COLOR: #666666;
  font-size            : 12px;
  font-family          : Times new roman,Tahoma,sans-serif; 
}

table
{
   width: 10%;
   font-size: 12px;
   background-color: #344566;
   border-color: #415680;
   table-layout: auto;
} 

div#a
{
border:2px dotted #ffffff;
background-color:#344055;
padding:1%;
margin: 2%;
height: 95%;
width: 100%;
position:relativ;
}
den html selektor habe ich eingefügt, weil ich da bei irgendeinem Beispiel von CSS4YOU sowas gesehen habe.Nämlich hier: http://www.css4you.de/wslayout1/ex0002.html
sowas will ich ja ungefähr haben und das wird auch von beiden Browsern korrekt angezeigt..dort im Quelltext habe ich das mit html gefunden.
naja...
meine HTML File sieht ganz einfach so aus:

Code:
<html>
 <head>
<title> Quoten</title> 
  <link rel="stylesheet" type="text/css" href="formate.css">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
 </head>
 <body>

<div id="a"> 
<table border="1" cellspacing="0" cellpadding="4">
    <tr> 
      <td> <font>hallo</font></td>
      <td> <font>2.Zelle </font></td>
    </tr>
    <tr> 
      <td> <font>2.Zeile,1.Zelle</font></td>
      <td> <font>2.Zeile,2.Zelle</font></td>
    </tr>
  </table>
</div>

</body>
</html>
Warum der Unterschied? Was versteht Firefox nicht?

Gruß,
Wimme
?>[/php]
Wimme ist offline   Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 15.10.2005, 12:23  
Gast
 
Beiträge: n/a
Standard

pack dein margin mal hierein
Code:
html {
margin: 2%;
}
  Mit Zitat antworten
Alt 15.10.2005, 13:33  
Neuer Benutzer
 
Registriert seit: 08.06.2005
Beiträge: 25
Wimme
Standard

das klappt.

aber hier die beschreibung von margin:
Erzeugt einen Abstand zu anderen Element. Außenabstände kannst du als transparenten Rand um ein Element betrachten. Dieser Rand ist transparent, um so einen Abstand zu anderen Elementen zu erzeugen.

hmm....

warum tut das im html und nicht beim div-Container?! Sollte es nicht anders herum sein?

Gruß,
Wimme
Wimme ist offline   Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[Erledigt] Firefox / IE - Probleme HTML, Usability und Barrierefreiheit 5 20.07.2009 17:04
probleme bei internet explorer und firefox igron PHP Tipps 2008 0 12.05.2008 17:27
Firefox / IE - ungeahnte Statistik pepe24 Off-Topic Diskussionen 10 30.04.2007 16:46
Firefox will mein 3-spaltiges Layout mit Footer nicht (CSS)! vampsoftchef HTML, Usability und Barrierefreiheit 1 28.02.2007 00:22
templates oder css mit firefox rbs_phoenix HTML, Usability und Barrierefreiheit 1 30.10.2006 15:24
Session funktioniert im IE nicht, Firefox ohne Probleme havok PHP Tipps 2006 7 14.08.2006 14:05
Probleme mit Firefox lessiv Off-Topic Diskussionen 1 10.01.2006 15:19
[Erledigt] window.location.href mit firefox HTML, Usability und Barrierefreiheit 15 18.11.2005 17:49
[Erledigt] Problem mit Layout bei Firefox HTML, Usability und Barrierefreiheit 3 14.11.2005 15:42
Problem mit CSS Layout HTML, Usability und Barrierefreiheit 5 15.10.2005 21:46
[Erledigt] Probleme bei Fehlerausgabe und bei Layout PHP Tipps 2005-2 3 01.10.2005 09:26
Deer Park Alpha 1 (=Mozilla Firefox 1.1) Off-Topic Diskussionen 15 09.07.2005 02:32
[Erledigt] verfluchter Firefox HTML, Usability und Barrierefreiheit 5 08.07.2005 22:51
Probleme mit dem Layout Pimbolie1979 HTML, Usability und Barrierefreiheit 7 01.06.2005 16:48
Morzilla Firefox und CSS probleme JEGO HTML, Usability und Barrierefreiheit 20 18.11.2004 21:49

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
css layout firefox, firefox 5 css probleme, firefox 4 css probleme, firefox versteht css nicht, css scrollbalken layout firefox, firefox css layout problem, html table layout auto firefox, firefox css layout, css layout in firefox, css height probleme mit firefox, css farbe scrollbar firefox, darstellungsproblem layout firefox 5, layout problem firefox 7, scrollbar layout firefox 5, probleme mit backgroudcolor in firefox 5, probleme layout firefox 5, \firefox 5\ tabellen border wird nicht angezeigt, \firefox 5\ probleme php, firefox 5 table problems, css probleme mit firefox 5

Alle Zeitangaben in WEZ +2. Es ist jetzt 01:42 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.