Browse Source

Würfelbereich gestaltet

main
Richard Halsall 2 years ago
parent
commit
461a43a05d
  1. 4
      schlangen_und_leitern/board.html
  2. 31
      schlangen_und_leitern/css/style.css

4
schlangen_und_leitern/board.html

@ -13,9 +13,11 @@
</head> </head>
<body> <body>
<div class = "container">
<div class = container id="würfelBereich">
<img src="/img/wurfle/f(1).png" id="face"> <img src="/img/wurfle/f(1).png" id="face">
<input type = "button" id="rollButton" onclick = "changeFace()" value = "Würfeln"> <input type = "button" id="rollButton" onclick = "changeFace()" value = "Würfeln">
</div> </div>

31
schlangen_und_leitern/css/style.css

@ -1,12 +1,29 @@
#würfelBereich{
height: 170px;
width: 170px;
display: grid;
grid-template-columns: 30px 100px 30px;
grid-template-rows: 30px 100px 30px;
gap: 5px;
}
#face {
grid-column: 2/2;
grid-row: 2/2;
height: 100%;
width: auto;
}
#rollButton{ #rollButton{
border: 1px solid #000000;
position: absolute;
top:50%;
left: 10%;
background-color:#ffffff;
grid-column: 2/2;
grid-row: 3/3;
font-size: 13px;
color: #000000 ;
height: 100%;
width: 100%;
font-size: 10px;
} }
Loading…
Cancel
Save