dポイントプレゼントキャンペーン実施中!

ホームページビルダー14のどこでも配置モードでホームページを作成しております。

ネットで調べると「どこでも」ではブラウザ中央表示が難しいらしいのがわかりました。
http://www.h7.dion.ne.jp/~nuru44/newpage2.htmlを参考に
自己流でやってみましたが、きれいに中央とまでいきませんでしたので教えてください。

宜しくお願いいたします。

以下にHTMLの一部を記述しております。


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META name="copyright" content="ホームページ・ビルダー (C) Copyright IBM Corp. 1995, 2009">
<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 14.0.0.0 for Windows">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="IBM:HPB-Input-Mode" content="mode/flm; pagewidth=1000; pageheight=1200">
<title></title>
</head>
<body>
<div style="top : 8px;left : 46px;
position : absolute;
z-index : 4;
" id="Layer1"><a href="http://www6.ocn.ne.jp/~irupa/" target="_self"><img src="irukapark_logo.png" width="76" height="104" border="0"></a></div>
<div style="top : 9px;left : 156px;
position : absolute;
z-index : 12;
" id="Layer5">





</body>
</html>

A 回答 (1件)

<body style="text-align:center;">


<div style="width:800px; margin:auto; text-align:left;">
この場所がセンタリングされます。
divのwidthはauto以外なら値を変更してもかまわないので必ず指定してください。
</div>
</body>
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!