+ 2

Html set heading to middle next to a picture

Hello, i'm sorry for my bad english... I want to set a heading into the middle of the display but i can set it only in the middle of the screen because in the left corner there is a picture and if i want to set the heading with align=center into the middle the heading is only in the middle of the right end of the picture and of the screen... i hope its understandable and thank you for answers <div style="float:left; width=600px; height=152px;"> <img src="bilder/logo.jpg" height="54px" width="214px" hspace="0" vspace="0"/> </div> <p> <h1 align="center" style="margin-top:15px; margin-bottom:20px;"><u>Heading</u></h1> </p>

16th Aug 2018, 7:59 PM
Peter Möhle
Peter Möhle - avatar
5 Answers
+ 5
add your code in your question
17th Aug 2018, 4:17 AM
Bug Slayer
+ 5
Do you need both elements (h1 and img - where img is in the left corner and h1 is in the center of webpage) in same line ? then https://code.sololearn.com/W290ZSxvx13I Otherwise comment
17th Aug 2018, 8:30 AM
Bug Slayer
+ 2
can you send your code
17th Aug 2018, 12:29 AM
Armann
Armann - avatar
+ 1
💬Y.K.💬 I need it nearly like you have showed but on your code the Heading is in the center of the right end of the picture an of the right end of the display. But yes it should be in the same line
17th Aug 2018, 9:52 AM
Peter Möhle
Peter Möhle - avatar
0
<a href="mailto:barney@earthman.com?subject=About%20your%20bouncy%20ball&amp;body=Hey%20Barney,%0D%0A%0D%0AIs%20your%20bouncy%20ball%20still%20for%20sale?">Email jahl Today!</a>
30th Aug 2018, 1:56 PM
Jahl