html - How do I get my webpage to look like this? -
i know, this isn't specific, it's hard explain, i'll provide images. here's how webpage looks now: 
how use css make this? 
sorry if image pretty bad, made on paint.
here's html:
<!doctype html> <html> <head> <title>dice roll game!</title> <!-- bootstrap cdns --> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <!-- end of bootstrap cdns --> </head> <body> <h2> we're gonna roll dice! <br><small>and have guess number dice roll.</small></h2> <div> select guess: <select class="form-control" id="select"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> </select> </div> <button id="submit" type="button" class="btn btn-primary">roll!</button> </body> </html>
html:
<h2> we're gonna roll dice! <br><small>and have guess number dice roll.</small></h2> <div id="test-container"> <p>select guess: </p> <select class="form-control" id="select"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> </select> </div> <button id="submit" type="button" class="btn btn-primary">roll!</button> css:
#test-container { display: flex; align-items: center; margin-bottom: 15px; } #test-container p { margin-bottom: 0; margin-right: 15px; } #test-container select { width: auto; }
Comments
Post a Comment