Questions tagged [document-body]

The body is part of an HTML document. It contains the content of that document.

268 questions
5
votes
5 answers

Why is document.body == null in Firefox but not Safari

I have a problem with a page where I am trying to get colorbox (a kind of lightbox for jQuery) working. It doesn't work apparently due to the document.body being null in FireFox (3.5.3). This is not the case in Safari (4.0.3) where the colorbox…
dlamblin
  • 43,965
  • 20
  • 101
  • 140
5
votes
3 answers

Append text WebEngine - JavaFX

How can I append text to webengine? I tried this: public TabMessage(String title) { super(title); view = new WebView(); engine = view.getEngine(); engine.loadContent(""); view.setPrefHeight(240); } private void…
Lukasz
  • 517
  • 1
  • 8
  • 20
4
votes
6 answers

Hide/remove scrollbar from but allow scrolling

As per the title, is there a way to hide/remove the scrollbar from body (not a div, but the entire body) and keep the 'scrollable property' enabled? I've been trying different solutions in these days but nothing really worked. Thank you in advance!
GiS91
  • 175
  • 1
  • 4
  • 12
4
votes
1 answer

Configure HAProxy to Log Request BODY

I understand that it is possible to log the BODY of a POST request with HAProxy since version 1.6.0. The following mail archive indicates that we need to use req.body somehow and log the capture.req.hdr in the log-format. The person asking in the…
hack_on
  • 2,532
  • 4
  • 26
  • 30
4
votes
1 answer

Objective C: Send email with subject and body and switching app

I want to send eMails with subject and body. This is my code right now and it works as expected. It´s leaving my app and creating a new message in Mail. [[UIApplication sharedApplication] openURL:[NSURL…
Ronald Hofmann
  • 1,390
  • 2
  • 15
  • 26
3
votes
0 answers

Why target the HTML tag when the BODY tag encapsulates everything visible?

Possible Duplicate: Should global css styles be set on the html element or the body element? Why do people target the HTML tag for styling when the BODY tag encapsulates everything visible? Shouldn't the BODY tag then be the main tag to target…
android.nick
  • 11,069
  • 23
  • 77
  • 112
3
votes
2 answers

how to change the body's border radius in Bootstrap

I want to change the border radius of the first div container that has class .container-fluid , how I can do that using bootstrap body's border radius in Bootstrap
Manaf
  • 41
  • 1
  • 3
3
votes
0 answers

jQuery.DomOutline formation issue on selected area

I want to create a chrome extension that let the user to select html element like firebug and i've implemented it with a jQuery plugin called jQuery.DomOutline. The problem is that it whenever I select an element in a web page that has margin:0…
Vivekraj K R
  • 2,418
  • 2
  • 19
  • 38
3
votes
1 answer

Why is the body background image not contained inside the body when the html tag has no background color set?

Google's 404 page uses margins and padding to center the content inside the body tag like this: body { margin: 7% auto 0; max-width: 390px; min-height: 180px; padding: 30px 0 15px; } The image of the broken robot is then set as a…
camesol
  • 53
  • 6
3
votes
1 answer

Why doesn't HTML body background-color obey margin?

According to w3, the margin of an element is transparent: I've built a very basic HTML page: Document