html - Put an image on the right side of the page -


so have webpage in html , css, , have contact page. have image want put on right side of page, if do: float: right; doesn't seem work. tried align apparently thing close text-align. if needed, here code (html): cherryplaysroblox

</head> <body>     <div class="outer"> <ul>   <li><a href="home.html">home</a></li>   <li><a href="about.html">about</a></li>   <li><a href="gallery.html">gallery</a></li>   <li><a href="contact.html">contact</a></li>         <p id="cherry">cherryplaysroblox1</p> </ul> <div class="jumbotron"> <h1>contact</h1> <h4>here few ways can contact me. update page when change anything.</h4>     </div> </div>  <!-- email --> <img src="_gmail.png" alt="gmail" height="30" width="35"> <h4>my email</h4> <!-- twitter --> <img src="_twitter.png.png" alt="twitter" height="35" width="35"> <h4>username</h4> <!-- facebook --> <img src="_facebook.png" alt="facebook" height="35" width="35"> <h4>username</h4> <!-- instagram --> <img src="_instagram.png" alt="instagram" height="35" width="35"> <h4>username</h4> <!-- me --> <div id="photoofme">     <img src="_cherry.png" alt="me" id="me"> </div> </body> </html> 

and css code:

#cherry {     color: black;     font-family: 'happy monkey', cursive;     font-size: 20px; }     ul {     list-style-type: none;     margin: 0;     padding: 0;     overflow: hidden;     background-color: darkorchid;     position: fixed;     top: 0;     width: 100%; }     li {     float: left;     border-right: 1px solid white; }     li {     display: block;     color: white;     text-align: center;     padding: 14px 16px;     text-decoration: none; }     li a:hover {     background-color: palevioletred; }     .active {     background-color: palevioletred; }     /*jumbotron*/ .jumbotron {     background-color: sandybrown !important;     float: top;  }     .jumbotron, p + h1 {     color: black !important;     font-family: 'happy monkey', cursive; }   /*body*/ body {     background-color: peachpuff !important; }     h2 {     font-family: 'happy monkey', cursive !important; }  h4 {     }     #me {     float: right;     clear: right; } 

i'd appreciate can get!

for correct floating needs @ top, float right whatever comes afterwards in document, if push #me container above #email it's going aligned on right side. in html id uppercase meand in css lowercase #me.

so push top , change lowercase:

... <!-- me --> <div id="photoofme">     <img src="_cherry.png" alt="me" id="me"> </div> <!-- email --> <img src="_gmail.png" alt="gmail" height="30" width="35"> <h4>my email</h4> ... 

Comments

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - SSE Emitter : Manage timeouts and complete() -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -