Jump to content
Dream_Catcher

Space between image and text

Recommended Posts

Hey everyone.

I wanted to find out how to make space between my image and text. Right now the page looks somewhat like this: http://jsfiddle.net/gmhuk3kq/4/

An image and text have no space between them like I want to. I tried to do margin and padding but they didn't work.

I'm not really good with code (I'm a beginner) so I don't know maybe I'm doing something wrong.

And I want my text not to be under the picture but for it go downwards not under the image.

 

Thank you for whoever answers.

Share this post


Link to post
Share on other sites

In your jsfiddle example the image hasn't loaded.

 

Applying padding directly on the img element should put space between it and the text but you need an image to actually load to test it.

Share this post


Link to post
Share on other sites

img_dentist { width: 400px; height: 350px; margin-left: 40px;

padding-bottom:10px;}

Edited by Tezzo

Share this post


Link to post
Share on other sites

try

padding-bottom:10px !important;

else

wrap a span around your text and give padding-top

Share this post


Link to post
Share on other sites

It would help if you used the class identifier '.' As in.paragraph1{...}.img_dentist{...}'.' = class'#' = id

Edited by dsonesuk

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...