File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes css class working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "css class working" Watch "css class working" New topic

css class working

Aggarwal Arpit
Ranch Hand

Joined: Mar 04, 2012
Posts: 86
Please explain me the function of this div tag

<div class="body p ">

Thanks in Advance
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

No idea. It would depend on what the definitions are in the CSS for .body and .p. Honestly, it's pretty horrible to name css classes the same as actual HTML elements.

GenRocket - Experts at Building Test Data
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Explain what? It is a div with two classes. [Poorly named classes in my eyes]

Matthew Brown

Joined: Apr 06, 2010
Posts: 4543

It's just a container with a couple of classes assigned to it. There's no standard meaning beyond that - it depends on your application. What do those classes mean in your app?
Aggarwal Arpit
Ranch Hand

Joined: Mar 04, 2012
Posts: 86
Yes these are two seperate css classes having code as:

.form div.body{
padding:0 22px;

height:345px !important ;
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

OK, well what's the question then. Somebody defined those classes (with very bad names, as already pointed out) in order to apply those CSS properties. Nothing more than that.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: css class working
It's not a secret anymore!