Click here to Skip to main content
15,904,500 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Remove Project Pin
MoustafaS4-Jun-05 11:47
MoustafaS4-Jun-05 11:47 
GeneralRe: Remove Project Pin
TheEagle7-Jun-05 21:09
TheEagle7-Jun-05 21:09 
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 
Problem (succinct): Say you want some of your paragraphs to have no top and bottom margin, and you want other paragraphs to have 12pt top and bottom margins. This can be done through styles. But then if you try to apply Trenton Moss's 4th HTML speedup tip, and place a 'div' around the block of paragraphs, rather than < P style=NoMargins>... it fails to work. Anybody know how to get around it, and have flexible paragraph margins on a style by style basis?

More vaguely describing the problem: The first try using styles may look like:
.NoMargin {
   margin-top: 0px;
   margin-bottom: 0px;
   }

.Margin {
   margin-top: 12px;
   margin-bottom: 12px;
   }

And using it in code looks like:
< P style=NoMargin>Paragraph1.</P>
< P style=NoMargin>Paragraph2.</P>
< P style=Margin>Paragraph3.</P>
< P style=Margin>Paragraph4.</P>

And that works. But then when you go
<div class=NoMargins>
< P>Paragraph1.</P>
< P>Paragraph2.</P>
</div>
<div class=Margins>
< P>Paragraph3.</P>
< P>Paragraph4.</P>
</div>

It fails miserably. In fact, it hooks onto the default 'P' margin-top and margin-bottom values, and doesn't look at the Margins OR NoMargins definition of margin-top or margin-bottom.

The only work-around I have found is to define:
P {
   margin-top: 0px;
   margin-bottom: 0px;
   }

and these values are what is used throughout. I cannot figure out how to get different margins around a style, other than going back to the first method ("< P class=Margin>...")

David
GeneralRe: HTML, paragraphs, &amp; margins problem: overwriting with 'div' Pin
DavidNohejl2-Jun-05 0:58
DavidNohejl2-Jun-05 0:58 
GeneralRe: HTML, paragraphs, &amp; margins problem: overwriting with 'div' Pin
David O'Neil2-Jun-05 3:42
professionalDavid O'Neil2-Jun-05 3:42 
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 

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.