html - How do i put text below a div tag? -


i have used divs make 2 images both sides of table, once divs have ended text input <p> appear above divs despite being later in code. want text appear below table. here code.

<!doctype html> <html> <head> <link rel = "stylesheet" type = "text/css" href="website.css"/> <title> stoge guitars </title> </head> <body> <div id = "container">     <div id = "x">         <img src= "images/workshop.png" id = "guitar">     </div>     <div id = "c">           <img src= "images/workshop.png" id = "guitar2">     </div>     <div id = "v">           <table>         <tr>             <th colspan = "5" id = "stogeguitars"> stoge guitars </th>         </tr>         <tr>             <th>home</th>             <th>our custom guitars</th>             <th>forum</th>             <th>workshop gallery</th>             <th>contact us</th>         </tr>         </table>     </div>     </div> <p> should below table </p>  </body> 

css

body { background-image:     url("http://images.epiphone.com.s3.amazonaws.com/products/les-paul/les-paul- standard-plustop-pro/gallery/pop_lpstdpluspro-hb.jpg"); background-size: 100% 100%; background-repeat: no-repeat; background-size: cover; } #stogeguitars { font-size: 20pt; font-family: "times new roman", times, serif; font-style: italic; } table, th, td { border: 1px solid black; } table { width: 60%; margin-left: 20%; margin-right: 20%; position: fixed; } #guitar { float: left;  } #guitar2  { float: right;    }  #guitar { width: 19%; height: 100%; position: fixed;  }  #guitar2 { width: 19%; height: 100%; position: fixed;  right: 0px; } p { border: 0px; text-align: left; } 

help appreciated thanks. sorry if i've made silly mistake, 16 , new html , css.

i have modified both html , css code:

jsfiddle

html

<center> <div id = "container">     <div id = "x">         <img src= "https://fedoraproject.org/w/uploads/6/66/artwork_f9themes_shoowa_shoowa-horizontal.png" id = "guitar" />     </div>     <div id = "v">           <table>         <tr>             <th colspan = "5" id = "stogeguitars"> stoge guitars </th>         </tr>         <tr>             <th>home</th>             <th>our custom guitars</th>             <th>forum</th>             <th>workshop gallery</th>             <th>contact us</th>         </tr>         </table>         <p> should below table </p>     </div>     <div id = "c">           <img src= "https://fedoraproject.org/w/uploads/6/66/artwork_f9themes_shoowa_shoowa-horizontal.png" id = "guitar2" />     </div>     </div> </center> 

css

body { background-image:     url("http://images.epiphone.com.s3.amazonaws.com/products/les-paul/les-paul- standard-plustop-pro/gallery/pop_lpstdpluspro-hb.jpg"); background-size: 100% 100%; background-repeat: no-repeat; background-size: cover; margin:0; } #stogeguitars { font-size: 20pt; font-family: "times new roman", times, serif; font-style: italic; } table, th, td { border: 1px solid black; } table { width:100%; } #x { display:inline-block; position: fixed; left:0px; top:0px; width: 19%; height: 100%; }  #v { margin:0; display:inline-block; top:0px; width: 62%; height: 100%;    border:1px solid red; /* remove line it's checking boundaries  */ }  #c { display:inline-block; position: fixed; right:0px; top:0px; width: 19%; height: 100%; }  img {     width:100%;     height:100%; }  p { position:relative; text-align:left; } 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -