Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7926615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:50:55+00:00 2026-06-03T18:50:55+00:00

<style type=text/css> fieldset { border: solid 1px orange } .label { font-family: Arial; font-size:

  • 0
    <style type="text/css">
        fieldset {
            border: solid 1px orange
        }
        .label {
            font-family: Arial;
            font-size: 12px;
            font-weight: bold
        }
        .groupName {
            font-family: Segoe UI;
            font-size: 16px;
            color: Gray
        }
    </style>

    <script type="text/javascript" src="libs/json2.js"></script>
    <script type="text/javascript" src="libs/jquery.js"></script>
    <script type="text/javascript" src="libs/sap.common.globalization.js"></script>
    <script type="text/javascript" src="libs/sap.riv.base.js" base-url="modules/"></script>
    <script type="text/javascript" src="modules/main.js"></script>
    <script type="text/javascript" src="libs/sap.riv.themes.js"></script>
</head>
<body>
    <div id="chart" style="width: 600px; height: 400px; background-color: #ffffff"><div id="0" style="position: absolute; font-size: 10px; box-sizing: border-box; overflow-x: visible; overflow-y: visible; left: 8px; top: 8px; width: 600px; height: 400px; ">` 

In chrome I can see

 body{
 display:block;
 margin: 8px;
}

I use document.getElementsByTagName(‘body’).style but get nothing.

my first div located at top&left: 8px of the html body.

But it does have margin, how could I get this default margin value?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:50:56+00:00Added an answer on June 3, 2026 at 6:50 pm

    You can have a look at the following link :

    http://javascript.info/tutorial/styles-and-classes-getcomputedstyle

    Check body margin value ( http://jsfiddle.net/eMnBL/6/ ) :

    var computedStyle = window.getComputedStyle ? getComputedStyle(document.body, null) : document.body.currentStyle;
    
    alert(computedStyle['marginTop']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code <!DOCTYPE HTML> <html> <head> <style type ='text/css'> * { font-family:Arial,
This is my css content :- <style type = text/css> li { display:inline; }
$('body').append('<style type=text/css> body {background:red;} </style>'); This doesn't make the background red. Is there away
<head> <style type = text/css> body{ text-align:center; } #container{ position:relative; width:600px; height:auto; border:1px solid
<Style x:Key=MyButton TargetType={x:Type Border}> <Style.Resources> <Style TargetType={x:Type TextBlock}> <Setter Property=FontSize Value=24/> <Setter Property=Foreground Value={StaticResource
My code: <!DOCTYPE html> <html> <head> <title>Demo</title> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <style type=text/css>
For example, in that html code I add list-style-type: none; in external test.css. When
Resource interpreted as document but transferred with MIME type text/css This is the error
I'm using the following css to define my background: body { background-image: url('background.png'); font-size:
In CSS, an em is a relative unit based on the font-size of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.