newcoder1010 Posted February 27, 2017 Share Posted February 27, 2017 Hello, I have two fields as below. <div class="field field-name-body field-type-text-with-summary field-label-hidden">.........</div> <div class="field field-name-field-map field-type-text field-label-above"> google map goes here</div> CSS for map class. .field.field-name-field-map.field-type-text.field-label-above { width: 50%; float: left; margin-top: -190px; } Now, page looks like this: How it is looking now. How can I apply padding around the map? So, it does not overlap? Link to comment Share on other sites More sharing options...
Ingolme Posted February 28, 2017 Share Posted February 28, 2017 The overlap is caused by the negative margin. Link to comment Share on other sites More sharing options...
newcoder1010 Posted February 28, 2017 Author Share Posted February 28, 2017 Well I need the negative margin to put it in that place. If I dont have the negative margin, it goes below on a separate row. I do not want that. I like to keep it where it is. I simply would need your help to force padding around the map. Link to comment Share on other sites More sharing options...
dsonesuk Posted February 28, 2017 Share Posted February 28, 2017 You should figure out why? It goes on to a separate row and fix that Link to comment Share on other sites More sharing options...
newcoder1010 Posted February 28, 2017 Author Share Posted February 28, 2017 Sure. I will do more research. 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