私はthisのようなものを探していますが、複数のDIVのものはありますか? hereが見つかりました現在私が持っているものを示すページをアップロードしました。DIV内部のDIVセンターのグループを整列
また、Dreamweaverでは、各アイテムの周囲に20ピクセルのパディングが表示されますが、Google Chromeでは同じアイテムは表示されません。なぜそれが分かりませんか?
結論:
DIV内部の中央DIVのへの道を探しています。 (ページ幅が変更されても)
Dreamweaverでアイテムを作成した理由がわかりません。
HTML:
<html>
<head>
<title>HELP</title>
<link rel="stylesheet" href="../_scripts/stylesheet.css" />
<link rel="stylesheet" href="../_scripts/stylesheet_divs.css" />
<link rel="stylesheet" href="../_scripts/stylesheet_header.css" />
<link rel="stylesheet" href="../_scripts/stylesheet_content.css" />
<link rel="stylesheet" href="../_scripts/stylesheet_footer.css" />
</head>
<body>
<div class="background-image-1">
<div align="justify" class="content-products">
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
<div class="product-cell-bg padding-20">
<div class="float-left product-cell"><img src="../_assets/fender.png" width="150" height="150"></div>
<div class="float-left product-cell">Fenders</div>
</div>
</div>
</div>
</body>
</html>
あなたは答えを持っているように聞こえます!あなたのスニペットを実行することにより、私は必要なものを正確に動作させるように見えました!私はちょうどそれが私の最後に動作するかどうかを確認するために私のHTMLコードに適用する必要があります! (現時点では午後11時40分ですので、今は笑いをする時間がありません) 私はそれを適用するチャンスが得られるとすぐに答えとしてマークし、それは仕事を管理します:) – Jesse
恐ろしい! :)まあまあまあ。 parent = block、children = inline-blockの場合、それらのインライン要素を整列させるだけで、 'text-align'がうまく機能します。 – UncaughtTypeError
これは完璧に機能しました!私はそれがページの80%に親を置くことも可能であるかどうか疑問に思っていましたが、それも中心に置いていましたか?または、親の外に別のDIV(elder hahaという名前)を作成してブロックと中心の親とするのが最善でしょうか? – Jesse