quote:Op donderdag 14 april 2005 12:07 schreef SqueaK het volgende:
gewoon de hele inhoud van de site... ik heb dit als container, waar vervolgens 3 cellen in staan:
[..]
in FireFox staat die tabel wel in het midden, maar in IE staats alles links uitgelijnd...ik bedoel dus de text niet maar gewoon de container waar de inhoud in staat
bronquote:As we know, Explorer Windows doesn't support margin: auto, so it doesn't center the site horizontally yet. Fortunately it allows us to center blocks by the (incorrect) use of text-align: center.
En zat dan wel in je andere div's weer de text-align op left, want anders is al je tekst gecentreerd.quote:Op donderdag 14 april 2005 12:51 schreef SuperRembo het volgende:
[..]
[..]
bron
Je moet dus de container van je #container (dat zal waarschijlijk de body zijn) op text-align: center zetten.
Klopt. Maar dat merk je snel genoeg.quote:Op donderdag 14 april 2005 13:27 schreef MouseInteractive het volgende:
[..]
En zat dan wel in je andere div's weer de text-align op left, want anders is al je tekst gecentreerd.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>NHome</title> <style type="text/css"> body { font: normal 10pt Trebuchet MS, Arial, sans, sans-serif, monospace; color: black; margin: auto; padding: 0px; background-image: url(images/achtergrond.jpg); margin: auto; } </style> </head> |
1 2 3 4 5 | body { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 18pt; font-style: normal; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <!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> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="stylesheet.css" type="text/css" rel="stylesheet" /> </head> <body> <center> <div id="main"> <div id="header"> </div> <div id="balk"> </div> <div id="content_splitter"> <div id="content_left"> L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br>L<br></div> <div id="content_right"> </div> </div> </div> </center> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | /* CSS Document */ body { font-family: Arial, Helvetica, sans-serif; text-align: center; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #000000; } #balk { width: 768px; height: 20px; display: block; background-color: #868686; } #content_splitter { width: 768px; min-height: 230px; background-color: #C9C9C9; display: block; } * html #content_splitter { height: 230px; } #content_left { width: 506px; min-height: 130px; background-color: #FFC9C9; display: block; float: left; } * html #content_left { height: 130px; } #content_right { width: 222px; min-height: inherit; background-color: #FFC9C9; display: block; float: right; } * html #content_right { height: inherit; } #main { font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin:0 auto; display: block; top: 20px; width: 768px; min-height: 150px; text-align: left; border-style:solid; border-bottom-color:#FFFFFF; border-left-color:#FFFFFF; border-right-color:#FFFFFF; border-top-color:#FFFFFF; border-width:1px; background-color: #FFFFFF; float: center; } * html #main { height: 230px; } #header { width: 768px; height: 178px; display: block; background-image: url(images/header.gif); background-color: #FFD110; } |
Schijnt erg moeilijk te zijn om dit met CSS te realiserenquote:Op dinsdag 19 april 2005 20:12 schreef BaggerUser het volgende:
heb een probleem
als content_left meer content krijgt wordt in firefox alleen content_left langer maar content_splitter niet. (en daardoor content_right ook niet)
FireFox
[[url=http://img151.echo.cx/img151/8296/werktniet14mf.th.jpg]afbeelding][/URL]
in explorer gebeurd dit wel
alleen werkt inherit voor content_right niet ..
explorer
[[url=http://img151.echo.cx/img151/862/werktniet27fd.th.jpg]afbeelding][/URL]
index.html
[ code verwijderd ]
stylesheet.css
[ code verwijderd ]
hoe heb je het opgelost ?quote:Op dinsdag 19 april 2005 21:05 schreef MouseInteractive het volgende:
[..]
Schijnt erg moeilijk te zijn om dit met CSS te realiseren
Ik kreeg het in ieder geval ook niet voor elkaar met mijn pagina.
Iemand misschien een idee hoe ik dit op kan lossen?quote:<div>
<iframe scrolling="yes" src="tekst.htm" width="700" height="349" frameborder="0">
</iframe>
</div>
dit staat dus in mn index2.htm
<link href="file:///I|/thinkquest/Thinkquest/css/thinkquest.css" rel="stylesheet" type="text/css">
</head>
<body class="inhoud" "style="margin: 0; padding: 0" width="700" height="349">
Portretfotografie.
dit is wat in mn iframe src staat, tekst.htm
quote:Op donderdag 28 april 2005 17:48 schreef SuperRembo het volgende:
En wij mogen raden wat er in thinkquest.css staat?
sryquote:.bannerbg {
background-image: url(../afbeeldingen/banner.gif);
background-repeat: no-repeat;
position: relative;
background-color: #000000;
border: none;
}
.inhoud {
background-image: url(../afbeeldingen/inhoud.gif);
background-repeat: no-repeat;
position: relative;
left: auto;
top: auto;
width: 700px;
height: 350px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: normal;
color: #FFFFFF;
border: none;
background-attachment: fixed;
background-position: 0px 0px;
text-align: left;
text-indent: 3pt;
}
.menu_bg {
background-color: #000000;
}
.inspring {
text-indent: 3pt;
}
Ik denk eerder een FF-probleem. Firefox & scrollbars in frames/div's met overflow werken niet fatsoenlijk.quote:Op vrijdag 29 april 2005 12:00 schreef SuperRembo het volgende:
Het zal wel een IE-bug zijn dat de tekst over de scollbars loopt.
In IE loopt de tekst over de scrollbars heen, in FF niet. Dan noem ik het een IE-bug.quote:Op maandag 2 mei 2005 09:40 schreef sop het volgende:
[..]
Ik denk eerder een FF-probleem. Firefox & scrollbars in frames/div's met overflow werken niet fatsoenlijk.
Ik krijg met de code die de TS heeft aangeleverd nergens problemen. Niet bij IE en niet bij FF.quote:Op maandag 2 mei 2005 12:39 schreef SuperRembo het volgende:
[..]
In IE loopt de tekst over de scrollbars heen, in FF niet. Dan noem ik het een IE-bug.
1 2 3 4 5 6 7 8 9 10 11 12 13 | <!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>Untitled Document</title> <link href="../css/thinkquest.css" rel="stylesheet" type="text/css"> </head> <body class="inhoud"> ....hier de body content.... </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | .inhoud { background-image: url(../afbeeldingen/inhoud.gif); background-repeat: no-repeat; background-attachment: fixed; background-position: 0px 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-weight: normal; color: #FFFFFF; border: none; text-align: left; text-indent: 3pt; margin:0; padding:0; } |
Ja dat klopt. Maar hoe los ik dat op?quote:Op dinsdag 3 mei 2005 23:43 schreef DionysuZ het volgende:
ik heb het idee dat het aan de margins ligt. 100% hoogte en dan nog eens de margins erbij zorgt voor een scrollbartje
Forum Opties | |
---|---|
Forumhop: | |
Hop naar: |