Web Marketing Tool
Reseller
WMT .
Question
Referred By: Web Marketing Tool
Login


What is the difference between margins and padd...

Added: 06/18/2013   |   Updated: 11 Years Ago

Question   What is the difference between margins and padding?



Answer    padding adds whitespace inside the border and margins add whitespace outside




Related Documents

Still Don't Understand?

Fill out the form below to ask for further clarification about this question:




RELATED QUESTIONS


Q. How would you style an element so that the next element would appear right next to it not underneath it if both elements widths were collectively smaller than the container element?

A.

display:inline;



Ask For Clarification

Q. What property do you use to create spacing between HTML elements?

A. Margin

Ask For Clarification

Q. For users that use the tab key to navigate websites, what property shows moving from one element to another using this behavior?

A. In CSS, a:focus can be used to style a link tag when it gets focus using keyboard tab or using mouse click

Tip:
The :focus selector is allowed on elements that accept keyboard events or other user inputs.

Syntax:
a:focus {
    css declarations;
}

Examples:

a:focus {
    color:#f90;
    font-size:24px;

}

When a link gets focus, gradually change its color to #f90 and its font-size to 24px.








Ask For Clarification

Q. What is the property used to set the class's text color?

A. color

Ask For Clarification

Q. What property would you use to change the list style to show roman numerals instead of normal numbers?

A.

list-style-type:upper-roman;



Ask For Clarification

Q. What property would you use to create space between the element's border and inner content?
Q. In what way can you NOT reference css?
Q. What property can you use to set the spacing in between lines of text?
Q. What property do you use to set the background color of an image?
Q. What is the worst way to style an element using css?
Q. What property would you use to set an image instead of a standard bullet in a list?
Q. How do you make a list that lists its items with squares?
Q. Which property is necessary to set an image in the background?
Q. If you wanted to position an element to the right in its container, what is a valid css property to use?
Q. How do you tell the browser you are creating a styling section with an internal style sheet?
Q. How would you style table rows to have alternating background colors?
Q. Some HTML elements have multiple states, like the link, how do you give it a particular style when the user hovers over the element?
Q. What is the easiest way to reference a class of various HTML elements with a class of "special"?
Q. If you want to make a footer that attaches to the bottom of the user's window and not just the bottom of the page, what two properties would you use?
Q. If you wanted to put an HTML element at a certain position on the page regardless of the other elements, what value would you give the position property?
Q. What property would you use to change the size of an HTML element's border?
Q. How do you change the text color of an element?
Q. What does css stand for?
Q. What is the correct HTML for referring to an external style sheet?
Q. Where in an HTML document is the correct
place to refer to an external style sheet?

Q. Which HTML tag is used to define an internal style sheet?
Q. Which HTML attribute is used to define inline styles?
Q. Which is the correct css syntax?
Q. How do you insert a comment in a css file?
Q. Which property is used to change the background color?
Q. How do you add a background color for all h1 elements?

Q. Which css property controls the text size?
Q. What is the correct css syntax for making all the < p> elements bold?
Q. How do you display hyperlinks without an underline?
Q. How do you make each word in a text start with a capital letter?
Q. How do you change the font of an element?
Q. How do you make the text bold?
Q. How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?

Q. How do you change the left margin of an element?
Q. To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?




Question Keywords: css



DMCA.com Protection Status Authorize.net
Valid HTML! Valid CSS!


Reseller: WMT
|
Login
(502) 225-3237