| | | | |
| |||||||
| HTML, Usability und Barrierefreiheit Themen rund um Textauszeichnung, Formatierung, Barrierefreiheit und Usability. |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| Neuer Benutzer Registriert seit: 04.07.2009
Beiträge: 7
PHP-Kenntnisse: Anfänger ![]() | Guten Tag, ich habe ein kleines Problem und zwar hab ich ein css layout erstellt indem ein Header + 4 Buttons + Content Bereich + footer vorhanden sind. Das ganze sieht so aus in Firefox: http://img5.imagebanana.com/img/y3hyg3cj/Layout.jpg und so wenn ich die Auflösung niedriger stelle: http://img5.imagebanana.com/img/tyo2ivi/Layout2.jpg Wenn die Auflösung niedriger gestellt wird sollen diese 4 Menü Buttons alle zentriert im Browser verkleinert werden also nicht wie jetzt nach links sondern wieder der header in der mitte bleiben! HTML datei: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>CSS Layout</title>
<link rel="stylesheet" href="Style.css" media="screen">
</head>
<body>
<div id="header"><font color="#ffffff"><br></div>
<div id="Button1"><a class="buttonhover" href="#"><font color="#ffffff">Home</a></div>
<div id="Button2"><a class="buttonhover" href="#"><font color="#ffffff">News</a></div>
<div id="Button3"><a class="buttonhover" href="#"><font color="#ffffff">Forum</a></div>
<div id="Button4"><a class="buttonhover" href="#"><font color="#ffffff">Impressum</a></div>
<div id="content"><font color="#ffffff"><br>
<br>
<br>
<br>
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
<br>
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
<br>
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
<br>
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
</a></div>
<div id="footer">Copyright © 2009 - Alle Rechte vorbehalten</div>
</body>
</html>
Code: body
{
margin: 0px;
padding: 0px;
text-align: center;
background-color:#000000;
font-family: Arial;
color: #ffffff;
position: relative;
}
A
{
color: #ffffff;
text-decoration: none;
}
#header
{
font-size: 0%;
font-family: Arial;
color: #ffffff;
font-size: 2em;
margin: 30px auto 5px auto;
height: 102px;
width: 799px;
background-image: url(Bilder/Header.jpg);
background-repeat: no-repeat;
background-position: 0pt;
position: relative;
}
#Button1
{
margin: 10px auto 10px 340px;
padding: 0px;
width: 169px;
height: 58px;
float: left;
background-image: url(Bilder/Button_2.jpg);
line-height: 58px;
}
#Button2
{
margin: 10px auto 10px 20px;
padding: 0px;
width: 169px;
height: 61px;
float: left;
background-image: url(Bilder/Button_2.jpg);
line-height: 58px;
}
#Button3
{
margin: 10px 10px 10px 20px;
padding: 0px;
width: 169px;
height: 61px;
float: left;
background-image: url(Bilder/Button_3.jpg);
line-height: 58px;
}
#Button4
{
margin: 10px 315px 10px 10px;
padding: 0px;
width: 169px;
height: 61px;
float: left;
background-image: url(Bilder/Button_4.jpg);
line-height: 58px;
}
#content
{
margin: 80px auto 15px auto;
height: 489px;
width: 799px;
background-image: url(Bilder/content.jpg);
}
#footer
{
margin: auto auto 30px auto;
height: 36px;
width: 799px;
clear: both;
color: #ffffff;
text-align: center;
font-size: 100%;
background-color:#333333;
line-height: 36px;
background-image: url(Bilder/footer.jpg);
}
a.buttonhover {
display:block;
width:169px;
height:61px;
background:transparent url(Bilder/Button_2.jpg) no-repeat top left;
}
a.buttonhover:hover {
display:block;
width:169px;
height:61px;
background: transparent url(Bilder/Button_1.jpg) no-repeat bottom right;
}
Vielen Danke schon mal!! Geändert von Rambo02 (26.07.2009 um 20:04 Uhr). |
| | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Moderator Registriert seit: 18.07.2005
Beiträge: 4.072
![]() ![]() | Ich würde es mal hier versuchen: Code: <div style="margin: 0px auto;"> <div id="Button1"><a class="buttonhover" href="#"><font color="#ffffff">Home</a></div> <div id="Button2"><a class="buttonhover" href="#"><font color="#ffffff">News</a></div> <div id="Button3"><a class="buttonhover" href="#"><font color="#ffffff">Forum</a></div> <div id="Button4"><a class="buttonhover" href="#"><font color="#ffffff">Impressum</a></div> </div> |
| | |
| | |
| moderatives Dielektrikum Registriert seit: 21.05.2008
Beiträge: 35.987
PHP-Kenntnisse: Fortgeschritten ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | [MOD: verschoben]
__________________ -- One pixel is still too big. Please make it smaller. ASAP. Initiative Mittelstand. Die wichtigste Gestaltungsregel im Screendesign ist Pi mal Daumen des Arbeitgebers. -- |
| | |
| | |
| Neuer Benutzer Registriert seit: 07.07.2009
Beiträge: 21
PHP-Kenntnisse: Anfänger ![]() | in deinem html-template fehlen sämtliche wraps(umschließende divs), das erleichtert dir das positionieren sehr, evtl. probierst du es mal so in etwa: HTML-Code: <div id="center"> <div id="menu"> [hier knöpfe] </div> <div id="content"> <div id="linkespalte"></div> <div id="rechtespalte"></div> </div> <div id="footer"> </div> </div> |
| | |
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| horizontales Menü | Fritz73 | Scriptbörse | 9 | 26.05.2008 22:26 |
| Reset Button bei Formularen | TeazY | PHP Tipps 2008 | 2 | 24.12.2007 14:59 |
| Problem mit CSS Layout | HTML, Usability und Barrierefreiheit | 5 | 15.10.2005 21:46 | |
| problem mit layout | Beitragsarchiv | 12 | 13.10.2005 12:41 | |
| Problem mit Link | PHP Tipps 2005-2 | 5 | 09.09.2005 08:59 | |
| Menü auf php-Seite | PHP Tipps 2005 | 20 | 01.02.2005 20:24 | |
| layout problem | HTML, Usability und Barrierefreiheit | 10 | 21.12.2004 13:47 | |
| CSS Layout problem mit IE | HTML, Usability und Barrierefreiheit | 6 | 02.11.2004 15:37 | |
| [Erledigt] per Button php in <td> laden | PHP Tipps 2004 | 4 | 26.10.2004 18:07 | |
| Ich habe eine Auswahlliste und einen Button. Wie auswerten? | PHP Tipps 2004 | 1 | 20.10.2004 16:39 | |
| [Erledigt] Problem: per klick auf Button Wert erhöhen/verringern | HTML, Usability und Barrierefreiheit | 7 | 07.10.2004 08:31 | |
| Problem mit Layout | PHP Tipps 2004 | 7 | 27.09.2004 15:24 | |
| [Erledigt] PopDown Menü fast fertig!! | HTML, Usability und Barrierefreiheit | 3 | 27.07.2004 00:11 | |
| Layout problem!!! | HTML, Usability und Barrierefreiheit | 4 | 21.07.2004 23:58 | |
| Problem mit dynamischen Menü | PHP Tipps 2004 | 0 | 02.07.2004 13:40 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| css buttons nebeneinander, html buttons nebeneinander, css button nebeneinander, buttons nebeneinander css, buttons nebeneinander, html button nebeneinander, css knöpfe, buttons nebeneinander html, button nebeneinander, css button layout, html button nebeneinander positionieren, html button layout, button nebeneinander css, button layout css, http://www.php.de/html-usability-und-barrierefreiheit/57474-css-layout-mit-4-buttons-nebeneinander.html, css zwei buttons nebeneinander, css nebeneinander, button nebeneinander html, div buttons nebeneinander, css 2 buttons nebeneinander |