Gunnar Bittersmann: Variable Anzahl an Spalten (2 bzw. 3)

Beitrag lesen

Hello out there!

Soll heißen manche seiten bestehen nur aus 2 spalten und manche aus 3.

Warum dann nicht getrennte Stylesheets?

2cols.css:

@import url(mystyle.css);  
/* Angaben speziell fürs 2-Spalten-Layout */

3cols.css:

@import url(mystyle.css);  
/* Angaben speziell fürs 3-Spalten-Layout */

mystyle.css:
/* alle anderen Angaben */

Je nach Seite bindest du entweder 2cols.css oder 3cols.css ein.

See ya up the road,
Gunnar

--
“Remember, in the end, nobody wins unless everybody wins.” (Bruce Springsteen)