Jump to content
php.lv forumi

FF vs IE


aika

Recommended Posts

kur ir tā vaina, ka IE div'us nostāda kolonnā, kad FF rāda kā vajag - rindā??!!

kods:

<div id="body">

<div id="row">

<div id="header_left"> </div>

<div id="header_center"> </div>

<div id="header_right"> </div>

<div id="clear"></div>

</div>

</div>

 

css:

#body {display: table; background-image:url(images/bg.jpg); width:100%}

#row{display: table-row; width:100%;}

#clear {clear:both;}

#header_left {display: table-cell; background-color:#090000; width:auto;}

#header_center {display: table-cell;width:800px; height:90; background-image:url(images/header_center.png);background-repeat:no-repeat; background-color:#171212;}

#header_right{display: table-cell; background-color:#090000; width:auto;}

 

Help un paldies jau iepriekš!

Edited by aika
Link to comment
Share on other sites

Ja gribi taisīt dizainu ar tabulām, tad izmanto tabulas tagus, nevis kaut kādu display:table-blabla huiņu.

Bet vispār to, ko tu centies panākt, var normāli panākt daudz vienkāršāk un bez display:table-...

 

<div id="wrapper"></div>


#wrapper{
 width:800px;
 margin:0 auto;
}

 

 

http://jsfiddle.net/PBLEK/

Edited by codez
Link to comment
Share on other sites

biju jau uztaisījis ar tabulām - tur bija tā pati problēma - IE šrinkoja kreiso malu

tagad IE divus liek kolonnā. bet man domāt - atrisinājums ir tuvu!.

 

uzdevums ir 3 kolonnu layauts, kurā vidējā kolonna ir fixed width, malas auto.

malējās kolonnas vajadzīgas lai menedžētu background attēlus

Edited by aika
Link to comment
Share on other sites

Īstenībā ir samērā daudz piemēru 3 kolonu izvietojumam, domāju caur google atradīsi, bet ieteiktu neizmantot display: table-..., tos IE neapstrādā kā vajadzētu.

 

http://www3.w3school...ass_display.asp

 

Note: The values "inline-table", "run-in", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-row", "table-row-group", and "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports the values.
Edited by Maris-S
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...