Saturday, 15 September 2012

css - How can I place 3 objects next to each other in HTML -


I want to place the image and two texts in front of each other. The first lesson is going to the far left image directly center Is in and the last lesson is true right here I am currently in ...

  & lt; Body & gt; & Lt; H2 & gt; & Lt; Font color = "# 99 ccx" & gt; & Lt; Font face = "wordana" & gt; Mr.ipik Gaming 4 U & lt; / Font & gt; & Lt; / H2 & gt; & Lt; Img src = "website_art.png" height = "75" width = "235" /> & Lt; H2 & gt; & Lt; Font color = "# 99CC00" & gt; & Lt; Font face = "wordana" & gt; Art of gaming & lt; / Font & gt; & Lt; / H2 & gt; & Lt; / Body & gt;   

How can I do this?

Thank you

You do not close the font element in the right element in your HTML code Are there.

In addition, there is a good practice to keep style in an external file (I talk about CSS).

Change to:

  & lt; Body & gt; & Lt; Div class = "container" & gt; & Lt; H2 & gt; MrEpicGaming4U & lt; / H2 & gt; & Lt; Img src = "Your URL" height = "75" width = "235" /> & Lt; H2 & gt; The Art of Gaming & lt; / H2 & gt; & Lt; / Div & gt; & Lt; / Body & gt;   

Keep these CSS rules:

  h2 {font-family: "Verdana"; Color: # 9C; }. Container & gt; * {Display: Inline-Block; }    

No comments:

Post a Comment