現在、Electron環境にてHtml+cssで画面デザインを行っております。
Htmlやcssがとても初心者の為、うまくデザインができずに困っています。
完成させたいデザインは、
└ 画面が2分割されている(左30% 右70%)
└ 右側の画面内にはwebviewが置かれてある
└ 左側の画面にはツールタイトルやボタンが置かれてある
このデザインで、左側の画面に置かれているものを中央配置したいです。
書き方が初心者の為、綺麗に書きなおして下されば嬉しく思います。
よろしくお願い致します。
■ 現在のhtml
<html> <head> <meta charset="UTF-8"> <title>I-Followers</title> <script src="aaa.js"></script> <LINK rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div id="left_frame"> <div id="auth"><div id="main"> <h1 id="h1">ツールタイトル</h1><hr> <button id='getListButton' class="button"><b>ボタン1</b></button> <button id='iineButton' class="button"><b>ボタン2</b></button> <button id='followButton' class="button"><b>ボタン3</b></button> <button id='autoScrollButton' class="button" onclick='scrollDown();'><b>Scroll</b></button> <div id="memberUrls"> </div> </div> </div> <div id="right_frame"> <webview id="mainWebview" src="https://www.instagram.com/" preload="webview/webview.js" autosize="on"></webview> </div> </body> </html><h1><p id="authh1">License</p></h1> <center> <table id="table"> <tr> <td><font color="#ffffff">ID:</font></td> <td><input type="text" id="authid"></td> </tr> <tr> <td><font color="#ffffff">PASS:</font></td> <td><input type="text" id="authpass"></td> </tr> </table> <br> <button class="button" id="clickAuth"><b><b>SEND</b></button> </center> </div>
■現在のcss
#h1{
color: #fff;
font-size: 60px;
letter-spacing: 4px;
font-family: 'Ubuntu', sans-serif;
text-align: left;
text-shadow: 0 0 12px #fff;
}
#main{
display: none;
}
#auth{
/display: none;/
}
#authh1{
color: #fff;
font-size: 30px;
letter-spacing: 4px;
font-family: 'Ubuntu', sans-serif;
text-align: center;
text-shadow: 0 0 12px #fff;
}
#left_frame {
background-image: url("bg.jpg");
height:100%;
left:0;
margin:0;
padding:0;
position:fixed;
top:0;
width:100%;
}
#right_frame {
height:100%;
margin:0 0 0 30%;
_overflow:auto;
padding:0;
display: none;
box-sizing:border-box;
}
#memberUrls{
width:80%;
margin:10,10,10,10;
word-break:break-all;
font-family:メイリオ;
color: red;
background-color: #FF9999;
}
webview {
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.button {
background-color: transparent;
border: 2px solid #fff;
color: #fff;
line-height: 30px;
width: 70px
}
.button:hover {
background-color: rgba(255, 255, 255, .2);
}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。