Click here to Skip to main content
15,920,896 members
Home / Discussions / Web Development
   

Web Development

 
Generaljavascript vs VB Script Pin
Usman Tasleem Akshaf2-Jun-05 2:13
Usman Tasleem Akshaf2-Jun-05 2:13 
GeneralRe: javascript vs VB Script Pin
Christian Graus2-Jun-05 10:32
protectorChristian Graus2-Jun-05 10:32 
GeneralRe: javascript vs VB Script Pin
Vasudevan Deepak Kumar5-Jun-05 18:32
Vasudevan Deepak Kumar5-Jun-05 18:32 
GeneralPrinting from IE Pin
Member 6450671-Jun-05 21:38
Member 6450671-Jun-05 21:38 
GeneralRe: Printing from IE Pin
Usman Tasleem Akshaf2-Jun-05 2:24
Usman Tasleem Akshaf2-Jun-05 2:24 
GeneralHTML, paragraphs, & margins problem: overwriting with 'div' Pin
David O'Neil1-Jun-05 20:32
professionalDavid O'Neil1-Jun-05 20:32 
GeneralRe: HTML, paragraphs, & margins problem: overwriting with 'div' Pin
DavidNohejl2-Jun-05 0:58
DavidNohejl2-Jun-05 0:58 
GeneralRe: HTML, paragraphs, & margins problem: overwriting with 'div' Pin
David O'Neil2-Jun-05 3:42
professionalDavid O'Neil2-Jun-05 3:42 
Thank you. I could have sworn myself black and blue that I tried that combo and every other combo among all the things I tried. Yet it works this time!

Can you explain the difference between the declarations: ".text p { ..." and ".text { ..." in this case? I do not understand the semantic difference between these two, and it confuses the heck out of me. I was under the impression that ".text { ..." declared a class called 'text', and that placing " < div class="text">" said: "use the class 'text' for the paragraphs in this division", but my understanding must be missing something, otherwise the 'margin' specifications would automatically apply on a per-paragraph basis?

OH! As I am writing this, and playing around, it finally sinks in. Your:
".text p" - which means "apply this style to childs of .text"
is wrong (I believe). It should be: "'.text p {...' means 'create a style named 'text' with paragraph properties of ..." In the same vein, "'.text { ...' says: "create a style with the attributes of ...", and then when you use that style in a division, it applies the margins to the top and bottom of that division, rather than the paragraphs in between.

Did I get the semantics right this time, and is there anything else I am missing? What other things besides 'p' can go in place of the 'p' in ".text p { ..."?

Again, thanks very much.

David
GeneralRe: HTML, paragraphs, & margins problem: overwriting with 'div' Pin
DavidNohejl2-Jun-05 4:02
DavidNohejl2-Jun-05 4:02 
GeneralRe: HTML, paragraphs, &amp; margins problem: overwriting with 'div' Pin
David O'Neil2-Jun-05 4:57
professionalDavid O'Neil2-Jun-05 4:57 
GeneralUrgent Help Pin
Usman Tasleem Akshaf1-Jun-05 17:06
Usman Tasleem Akshaf1-Jun-05 17:06 
GeneralRe: Urgent Help Pin
Christian Graus1-Jun-05 17:11
protectorChristian Graus1-Jun-05 17:11 
GeneralRe: Urgent Help Pin
Yulianto.2-Jun-05 23:06
Yulianto.2-Jun-05 23:06 
GeneralUrgent Help Pin
Usman Tasleem Akshaf1-Jun-05 5:18
Usman Tasleem Akshaf1-Jun-05 5:18 
GeneralRe: Urgent Help Pin
NeverHeardOfMe1-Jun-05 9:50
NeverHeardOfMe1-Jun-05 9:50 
GeneralAcessing ActiveX Component / Library not registered Pin
Florian Storck1-Jun-05 4:20
Florian Storck1-Jun-05 4:20 
GeneralStored Procedures Pin
Brendan Vogt31-May-05 20:28
Brendan Vogt31-May-05 20:28 
GeneralRe: Stored Procedures Pin
Christian Graus31-May-05 21:03
protectorChristian Graus31-May-05 21:03 
GeneralRe: Stored Procedures Pin
Brendan Vogt31-May-05 21:10
Brendan Vogt31-May-05 21:10 
GeneralRe: Stored Procedures Pin
NeverHeardOfMe1-Jun-05 9:57
NeverHeardOfMe1-Jun-05 9:57 
GeneralRe: Stored Procedures Pin
Christian Graus1-Jun-05 11:37
protectorChristian Graus1-Jun-05 11:37 
GeneralRe: Stored Procedures Pin
NeverHeardOfMe1-Jun-05 13:32
NeverHeardOfMe1-Jun-05 13:32 
Generalasp Pin
Anonymous31-May-05 17:52
Anonymous31-May-05 17:52 
GeneralRe: asp Pin
Anonymous31-May-05 18:21
Anonymous31-May-05 18:21 
GeneralRe: asp Pin
Vasudevan Deepak Kumar10-Jun-05 0:07
Vasudevan Deepak Kumar10-Jun-05 0:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.