Meaningless Drivel is fun!*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "css class working" Watch "css class working" New topic
Author

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: 15299
    
    6

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
author
Rancher

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

Eric
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4421
    
    8

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{
color:#555556;
height:412px;
padding:0 22px;
overflow-y:auto;
overflow-x:hidden;
}

.p{
height:345px !important ;
}
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61420
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: css class working