Cannot remove padding in a div

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Cannot remove padding in a div

Postby davidhelp » Thu Oct 20, 2022 10:34 am

Basic newbie problem..... : )

I still see padding above and below the text in a div. I am using Georgia and Open Sans fonts.
The text is directly next to the left side but has padding above and below.
Same issue with an image.

I have added:
margin: 0px;
padding: 0px;

See a test. Right click on the page to view source: http://davidswebsite.com/test/test_0px_ ... n_div.html

How to fix?
davidhelp
 
Posts: 27
Joined: Thu Jul 15, 2021 6:04 am

Re: Cannot remove padding in a div

Postby davidhelp » Thu Oct 20, 2022 10:06 pm

I received an answer. I needed to add line-height for the text and display: block for the image.
http://davidswebsite.com/test/test_0px_ ... n_div.html
davidhelp
 
Posts: 27
Joined: Thu Jul 15, 2021 6:04 am


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 58 guests