School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,127 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,073 people online right now. Registration is fast and FREE... Join Now!




Can't full understand this CSS code

 

Can't full understand this CSS code

adhruv92

2 Nov, 2009 - 03:10 AM
Post #1

New D.I.C Head
*

Joined: 2 Nov, 2009
Posts: 26


My Contributions
I had got a CSS code for an image gallery from my friend and failed to understand it, i am posting the part which I could now understand, please tell me what does that exactly mean :

CODE

div.img img
{
  display: inline;
  margin: 3px;
  border: 1px solid #ffffff;
}


User is offlineProfile CardPM
+Quote Post


thehat

RE: Can't Full Understand This CSS Code

2 Nov, 2009 - 03:21 AM
Post #2

awake ? web();
Group Icon

Joined: 28 Feb, 2008
Posts: 940



Thanked: 99 times
Dream Kudos: 200
My Contributions
It applies the rules to any img elements in any divs with a class name of img. The rules tell the element to:
  • display in-line, i.e. they will not line break unless forced to do so by the boundaries of their parent
  • have a 3px margin on all sides
  • have a 1px white border on all sides


User is offlineProfile CardPM
+Quote Post

adhruv92

RE: Can't Full Understand This CSS Code

2 Nov, 2009 - 04:10 AM
Post #3

New D.I.C Head
*

Joined: 2 Nov, 2009
Posts: 26


My Contributions
thanks for the reply
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:28PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month