Freitag, 10. Februar 2012
06:08
Homepage-Tipps & -tricks für Webmaster mit CSSScrollbare Div-Box anstatt IframeEs muß nicht immer gleich ein Iframe sein ... Anweisung in der CSS-Datei:
.box
{
width: 350px;
height: 150px;
overflow: auto;
font-family: Arial, Helvetica, Tahoma;
font-size: 12px;
background-color: #666;
color: #FF9933;
padding: 5px;
text-align: justify
}
Anweisung im Html-Dokument:<html> <head> <title>Div-Box</title> <link rel="stylesheet" type="text/css" href="css/box.css"> </head> <body> <div class="box"> Text Text Text Text ... </div> </body> </html> Tipp: Mit der Anweisung "overflow: auto" in der CSS-Datei lässt sich die Scrollbar der Box je nach Inhalt automatisch aktivieren bzw. deaktivieren! [ veröffentlicht am 03.05.2008 ] __________________________ Das könnte Sie vielleicht auch interessieren:
|
AnzeigenMarktplatzWebPack® 3.0: Mit über 20 Web-Applikationen wie Wordpress, phpBB Forum und MediaWiki. Ab EUR 1,49/Monat*!
Mit klarmobil.de ab 9 Cent/Min. in alle Netze ohne Grundgebühr keine Vertragsbindung incl. 10 EUR Startguthaben für nur 4,95 EUR - [ jetzt wechseln und sparen! ] Eigene Homepage mit Jimdo - schnell & einfach selbst erstellt incl. eigener Domain für nur EUR 5 / Monat
[ mehr Infos ] |
|||



