Margin and padding values

Hello
Should we we specifically state the margin and property in EACH selector to fill, even if its value is zero?
(* I know that if they are not specified, the default values are used and they vary differently browsers browsers.)
So, how can I simplify the process other than the use of grouped selectors?
Thanks for any help!

If you * want * it is zero, then you need to indicate that this is so.

* {margin: 0; padding: 0 ;}}

will define the margin/padding to zero on each element of the page.

--
Murray - ICQ 71997575
Adobe Community Expert
(If you * MUST * write me, don't don't LAUGH when you do!)
==================
http://www.dreamweavermx-templates.com - template Triage!
http://www.projectseven.com/go - DW FAQs, tutorials & resources
http://www.dwfaq.com - DW FAQs, tutorials & resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Kit - P" wrote in message
News:e27p4q$MDI$1@forums. Macromedia.com...
> Hi,.
> Should we specifically state the margin and padding property each
> selector even if its value is zero?
> (* I know that if they are not specified, the default values will be used and)
> they
(> varies differently from browsers browsers.)
> So, how can I simplify the process other than the use of grouped selectors?
> Thanks for any help!
>

Tags: Dreamweaver

Similar Questions

  • What IS the use of the margin and padding?

    When you create a new Web site, you can set margin and padding. What is this for?

    Hello

    Padding and margin, are CSS properties, check out these links for more details

    Margins: margin CSS

    Padding: CSS Padding

    Hope this helps

  • Margins and padding around image links are clickable. How can I configure only the image as the link?

    I can't not formatting of the links I added to my images. I used css rules to define the layout of my page, the margin using the css rules to dictate most of the layout. I had everything where it needs to be visually, however I have a problem after adding links. Whenever I put an image as a link, the white space around the image that is associated with the margin is also a clickable part of the link. I tried to use padding instead of margin for the page layout, but that was of no help. I want only the image itself to be the link so that the margins between photos in a gallery are not clickable links. How can I do this while maintaining the layout of the page?

    I think that the best way to solve this problem would be to hold each image in a div that is sized appropriately.  Put the margins and padding on the div.  Put the links on images.  The divs must be launched to get them on the same horizontal line.

    Make sense?

  • Margin and Padding question

    I think my first responsive website.  Nothing too crazy.  Header, navigation bar, content, footer.  That's all.  However, I can't space them correctly.  I have an image in the header and want the header to be at the exact height of the image.  But the background of the header going slightly below the image. In addition, there is a gap between my header and the bar of navigation in firefox but not safari.  I want to know how to get rid of the interval in all browsers.  I've experimented with margins affecting 0 and/or automatic in several places and padding to 0 in several places, but nothing works. What is the trick? I put a link to the page so you can see what is happening and also to provide my HTML below and lower than CSS.  Thanks for any help!

    http://www.jradrocks.com/indexnew

    HTML

    <! DOCTYPE HTML >

    < html >

    < head >

    < meta charset = "UTF-8" >

    < title > J.Rad < / title >

    < link type = "text/css" rel = "stylesheet" hand. CSS"/ >

    < meta name = "viewport" content = "width = device-width, original scale = 1.0" >

    < / head >

    < body >

    < header > < Center > < img src = ' Background-Images/sick-Fantasy - Banner.png "alt ="Image of the banner"> < / center >

    < / header >

    < nav >

    < ul >

    < li > < a href = "#" > < img src = "Images/Background-News.png" alt = "News" > < /a > < /li >

    < li > < a href = "#" > < img src = "Background-image/Bio.png" alt = "Bio" > < /a > < /li >

    < li > < a href = "#" > < img src = "Background-image/Tour.png" alt = "Tower" > < /a > < /li >

    < li > < a href = "#" > < img src = "Background-image/Store.png" alt = "Store" > < /a > < /li >

    < li > < a href = "#" > < img src = "Background-Images/Music.png" alt = "Music" > < /a > < /li >

    < li > < a href = "#" > < img src = "Background-image/Photos.png" alt = "Photos" > < /a > < /li >

    < li > < a href = "#" > < img src = "Background-image/Videos.png" alt = "Vidéos" > < /a > < /li >

    < li > < a href = "#" > < img src = "Background-image/Contact.png" alt = "Contact" > < /a > < /li >

    < div class = "clearfix" > < / div >

    < /ul >

    < / nav >

    < div id = "container" >

    < article id "left column" = >

    It's the session of the left for the main content column

    < / section >

    < id side = "right column" >

    It's the right for secondary content column

    < / side >

    < div class = "clearfix" > < / div >

    < / div >

    <>footer

    < / footer >

    < / body >

    < / html >

    CSS

    @charset "UTF-8";

    / * CSS document * /.

    {body

    height: 100%;

    background-attachment: fixed;

    background-image: url(Background-Images/Sick-Fantasy-Background.png);

    background-position: top center;

    background-size: coverage;

    margin: 0 0;

    padding: 0px;

    }

    {to header

    overflow: auto;

    background-size: coverage;

    background-image: url(Background-Images/Rust-and-Foamy-Blood-Texture.png);

    background-position: center;

    margin: 0px;

    padding: 0px;

    }

    {of NAV

    background-color: #000;

    background-size: coverage;

    padding: 0;

    margin: 0 0;

    }

    NAV ul {}

    list-style: none;

    margin-top: 0;

    margin-left: 25px;

    padding: 0px;

    }

    nav li a {}

    color: #FFFFFF;

    Display: block;

    float: left;

    padding: 0px;

    text-decoration: none;

    }

    {.clearfix}

    Clear: both;

    Display: block;

    }

    NAV a: hover, nav li.active a {}

    background-color: #996600;

    }

    #container {}

    Max-width: 960px;

    Width: 960px;

    margin: auto;

    }

    {#left-column}

    Width: 600px;

    float: left;

    Background: #0000FF;

    }

    {#right-column}

    Width: 360px;

    float: left;

    Background: #FF0000;

    }

    {.clearfix}

    Clear: both;

    Display: block;

    }

    @media screen and (max-width: 959px) {}

    {#body}

    Width: 100%;

    }

    #header {}

    Width: 100%;

    }

    #container {}

    Width: 100%;

    }

    {#left-column}

    Width: 65%;

    }

    {#right-column}

    Width: 35%;

    }

    IMG {}

    Width: 100%;

    }

    }

    @media screen and (max-width: 640px) {}

    {#left-column}

    Width: 100%;

    }

    {#right-column}

    Width: 100%;

    }

    }

    @media screen and (max-width: 300px) {}

    #header {}

    Width: 100%;

    }

    #container {}

    Width: 100%;

    }

    }

    The central element is obsolete, so delete it.

    Banner Image

    Then add the link above for main.css

    
    

    The first style rule removes all the padding and margins of all the elements. Don't forget to add the padding and margins of these elements that need it such as h1 or p etc.

    The second rule of style changes the image of an inline-block to a block element, and adds a margin to auto to Center. A margin of auto normally requires a width property, but the width of the image is used in this case.

    There is one more problem in the document, namely

  • http://www.jradrocks.com/Background-Images/Photos.png"alt ="Photos">"
  • http://www.jradrocks.com/Background-Images/Videos.png"alt ="Vidéos">"
  • http://www.jradrocks.com/Background-Images/Contact.png"alt ="Contact">"
  • Div element is not allowed as a child of the ul element in this context.

  • Cannot set the margins or padding

    Margins and padding don't work for images, forms or anything I can say.

    Can you help me understand how to set the padding and margins?

    Or I have to quickly create with Muse and export to Dreamweaver or Expression?

    Ugh. Well, Muse is not yet provide a mechanism for vertically centering in the browser window, so to realize that you need to be creative with others come. According to your comfort with the coding, the complexity of the page and the frequency that you want to achieve this outcome, the way invites you to create outside of the Muse or you may want to explore creative insert use of HTML, the Page Propertiessection or the creation of a MuCOW widget.

  • even if the margins and clear the values defined divs, overlaping

    For this site, the text in the DIV called "thumbnailshere" overlaps the div below, even if the margins and clear the values have been set.

    http://tfproperty.co.UK/checkthisout/about.html

    How can I fix it?
    Thank you

    jdldn wrote:
    > For this site, the text in the DIV called "thumbnailshere" overlaps the div
    > below him, even if the margins and clear the values have been set.
    >
    > http://tfproperty.co.uk/checkthisout/about.html
    >
    > How to fix this?
    > Thank you
    >

    This is because you have set the height on your 'thumbnailshere '.

    . Never
    the value height unless you know how high the content is going to be.
    Remove the height.

    {.thumbnailshere}
    height: 400px; / * remove the height * /.
    margin-top:-10px;
    }

  • OfficeJet 6500 e709: prints w / scale on the left margin and does not print right side of the page

    Prints with a wide margin and does not print the last 2 "or 3" on the right side of the page. This occurs even when the value of the left margin to little or none.

    HP trouble shoot said there is nothing wrong and test page prints fine.  Then back to the problem so try to print.

    HI @philg2,

    I see your thoughts produce a wide margin left and right of the page is cut off. What program are you printing from, and this occurs when you print from all programs or just a particular program?

    I see your post that this is not happening when you print a test page, so I think the problem is somehow related to the driver or program that you use. Let's start with the HP print and Scan Doctor is a free utility (tool) that allows to quickly resolve problems printing, scanning and connectivity, including but not limited to:

    • Connectivity:

      USB: Check that the USB connection from your computer to the HP product works properly.

      Network: Verifies that the network connection between your computer and your network is working properly.

    • Device Status Test: checks the errors of the device, such as paper, paper jams, stands transport and paper issues and provides instructions to resolve the error.

    • Driver: checks the driver missing or corrupt files.

    • Device Manager: check the problems in Device Manager that could prevent printing.

    • Device online: check if the product has been suspended or put in offline and then sets the State back in line if necessary.

    • Print queue: checks and clears pending print jobs in the print queue (a newspaper for printing waiting to print).

    • Port Match: check the port settings for the HP product.

    • Device conflicts: check the conflicts with other drivers, such as the other brands of printers.

    • Ink issues: check the cartridges and the ink levels for issues that affect the print quality.

    • Print settings: check and adjust the print quality settings.

    • Test print: print a test page for the assessment of the print quality and provides options for cleaning and if necessary print head alignment.

    • Scan tests: check the scanning mechanism, drivers, and registry entries.

    Source:try the HP Print and Scan Doctor for Windows

    Click here to download and run the print and Scan Doctor > > www.hp.com/go/tools

    If this does not resolve the problem, after back and let me know if there are all the symbols except the Green checkmarks and what they are next of course. The key is not always easy to identify the key and check mart are in the green circle.

    • If you see only the Green checkmarks (), the tool did not find any problem.

    • If you see green sides (), the utility identified a problem and fix it automatically.

    • If you see yellow exclamation points (), the test failed and requires monitoring of the user, but the step was ignored.

    • If you see a red X (), follow the onscreen instructions to fix the problem.

    Thanks, I look forward to hearing back on your part.

  • painful margins left/padding

    I'll be darn if I can understand why I have these problems of left margin.

    One is in my sidebar div, and that should be obvious:

    < div id = "sidebar" > we have a wide range of houses to bounce

    < / div > <! - ends sidebar - >

    I would like him to have the same left margin as the div above it (not in the HTML code but in Visual page on a desktop computer): < div id = "bouncer" >

    I've been playing with the CSS and cannot move the div to the left.

    In addition, I have a four-column page footer area. The text, it is too far left, as well:

    < div class = "colonne-quatrieme" >

    < div class = "content of the column" >

    < ul >

    Bristol < /li > < li > Bounce House rentals

    Forestville < /li > < li > Bounce House rentals

    Plainville < /li > < li > Bounce House rentals

    Newington < /li > < li > Bounce House rentals

    West Hartford < /li > < li > Bounce House rentals

    East Berlin < /li > < li > Bounce house rentals

    < /ul >

    < / div >

    < / div >

    And I looked at the lists and lists bulleted, all in the style of the leaf and cannot, for the life of me, know the dash.

    Can I get a second pair of eyes?

    The web page is here:

    http://bouncezonect.com/bouncezone.html

    Is the style sheet to http://bouncezonect.com/CSS/main.CSS

    In the HTML code, I don't want to set the bar just below the content div, because on the phones, I want it to appear under this div.

    Thank you!

    -Mark

    Footer:

    UL {margin: 0; padding: 0}

    #sidebar {float: left}

    Nancy O.

  • Aligned margins and paragraph space

    Hi guys,.

    Is it possible to have bottom aligned margins and a better separation/paragraph of title? Here are the samples

    (1) nice bottom aligned but too close position of paragraph margins

    http://tinyurl.com/75bkhek

    (2) section nice / point of separation but very ratings looking for substantive margins

    http://tinyurl.com/6wry7ps

    I think it is a very common thing when text is right on a grid of text... but I saw the annual report and other samples that solves the problem. How?

    See you soon,.

    We will study your second example that you have linked above. In the left column the text above the position and the position itself, all seem to be on the 12pt baseline grid, but the following text looks like he has some 'space after' added in the paragraph style, maybe 6 pt or half a line. You have made the position of space by adding a blank line (empty paragraph).

    If you want to maintain the grid reference for the body of the text, you have two options. Set snap to grid in the style for at least the first paragraph of the body after a cap or maintain the attack throughout all the paragraphs as a multiple of the spacing of the grid. Another way of looking at this, is that your headers should float in a space that is equal to a multiple of the spacing of the grid, two, three or maybe four lines. If you want half a line after the title, you have to find a way to add the other half a line so the total is an even multiple. one way to do that is to increase spacing applied to the section push it down and leave more space above. Another is to add space, and a third is to add a space after the paragraph before the title.

    The big problem is what happens when the title is at the top of a column. If you use one of the paragraph spacing options, the extra space is ignored by ID and disappears in the upper part of the column. If you add to the leading value, you must set your text field for the first options 'leader' base line or the extra space is also lost on the top, and in any scenario where the title falls in high and space is lost at the top of the column to your body text does not have to align with the grid in this column. If you set the first base to attack line, you get the desired spacing, but now there's a blank space at the top of the column that you probably don't want.

    What all this boils down to is you can't have your cake and eat it, too. To keep the body of the text on the grid, set the attribute align to grid property and accept that the gap is more important between the titles and body text when the title is a top of a column or when the title is run more of a line, OR set the first base property for your blocks of text to attack and make sure that the principal assigned to your headers is equal to a multiple of the main complete assigned in body text AND configure the time space equal to the leading value for the body of the text (and any space before is also set to a multiple full body of text leading).

    First base line set to attack and put body to snap to grid:

    First put in charge, all the text base line using this multiple head (that is to say, the principal amount is twice the attack of the body of text):

    First base line the leading value (can also be assigned to the rise), all text uses the same type of size and fine:

    In all the examples above, I added to the heading style space equal to the attack of the body of text and equal to two times the space.

  • Spacing between the label and the value

    I hope it is a simple guy.

    Does anyone know how to increase the space between the LABEL of the element and the value of the ELEMENT.

    Any help much appreciated.

    Hello

    Are your right-aligned labels?

    If so, use instead the following:

    style="padding-right:10px"
    

    This allows to insert a gap of 10px between the end of the label and the end of the cell

    Andy

  • read the type of variable and the value of LabView

    With the help of the TS. Class sequence that I try to get the type of variable and the values of local variables, parameter, fileglobal and stationglobal. Unfortunately I'm not able to find the right function. Hope someone can help me.

    Kind regards

    Lars

    Hello

    Maybe this simple TestStand example will help you.

    The API calls for LabView are the same...

    Hope that helps

    Jürgen

  • How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance

    How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance, as indicated in the figure below. and enter this signal in a data acquisition.

    At the time wherever you go for the beautiful diadram, you could have done the vi

    Your DAQ would like a waveform (table of values and dt ak 1/sampling rate)

    If you set the sampling rate you know the length of the array, create a matrix of zeros and set the values of the two amplitudes...

    Because I don't want to connect other duties here are some photos

    And it does have a few drawbacks leaves to be desired in my solution, just think... rounding errors and what might happen if the tables are becoming more...

  • the min and MAX values maintain their good values tia sal22

    the min and MAX values maintain their good values tia sal22

    Hi all

    I have problems a little value to stay in their correct min and max values min and max.
    Continue to change their values (up and down) trying to get the max value to only display the maximum value at a given time and the same for the min value.  I looked at the examples max and min and it seems that it should be in a while loop
    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=359822

    but I would add another while loop and if so put it in the loop for? or is there a better way to do it.

    TIA sal22

    Hi sal22,

    I thought it was just one example you found somewhere, because it is called red rooster. See the attached example.

    Mike

  • IMAQ statistics block - minimum and maximum value giving 0

    Guy - can someone please test. Average and standard deviation give good numbers.  Min and Max are the two display zero (0).

    Thank you

    Don

    Do the Boolean calculate Min/Max? true to get Min and Max values.

  • Help compare the negative and positive values

    Well guys, I do this example to show you what I mean

    With this example, I can get positive and negative numbers in digital

    But for me, the 'negative' mean nothing

    Example:

    If I have "100-200" for me the biggest value is - 200

    But if I compare the values of bouth got 100 as greater value

    I do the same calc for 3 different variables such as A, B, C

    and after that I need to calc whose value is 'more '.

    But my problem is that if I have the values "-350 300-400.

    the largest will be "300", but for me the 'negative' mean nothing

    so I need to the largest value is "-400".

    For all positive values, its works very well!

    I compare A and B, after the highest is on C and have a result!

    but when I have negative and positive values... I had this problem...

    and when I have negative values only I have a problem too.

    '-300-400-500' for me the largest value must be "-500" but labview-watch "300".

    as - 300 is greater than-500 in algebriac.

    And if I use absolute values, I will always have a positive value... but I need to know if the value is positive or negative

    No matter which, can help me with this?

    Thank you

    Ben

Maybe you are looking for