Dream_Catcher Posted March 28, 2015 Share Posted March 28, 2015 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. Link to comment Share on other sites More sharing options...
Ingolme Posted March 28, 2015 Share Posted March 28, 2015 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. Link to comment Share on other sites More sharing options...
tejasamrute Posted March 28, 2015 Share Posted March 28, 2015 (edited) img_dentist { width: 400px; height: 350px; margin-left: 40px; padding-bottom:10px;} Edited March 28, 2015 by Tezzo Link to comment Share on other sites More sharing options...
Dream_Catcher Posted March 28, 2015 Author Share Posted March 28, 2015 I did padding on my code page and it's still not working. I still don't see the space Link to comment Share on other sites More sharing options...
tejasamrute Posted March 28, 2015 Share Posted March 28, 2015 try padding-bottom:10px !important; else wrap a span around your text and give padding-top Link to comment Share on other sites More sharing options...
dsonesuk Posted March 28, 2015 Share Posted March 28, 2015 (edited) It would help if you used the class identifier '.' As in.paragraph1{...}.img_dentist{...}'.' = class'#' = id Edited March 28, 2015 by dsonesuk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now