Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > margin and templates

Reply
Thread Tools

margin and templates

 
 
Stijn Goris
Guest
Posts: n/a
 
      12-26-2003
hi all,

Is there a css function that defines a margin only applicable to text and
not to images or other elements inside the that css tag?

Can someone point me a good template tutorial.

thanks all


 
Reply With Quote
 
 
 
 
William Tasso
Guest
Posts: n/a
 
      12-26-2003
Stijn Goris wrote:
> ...
> Is there a css function that defines a margin only applicable to text
> and not to images or other elements inside the that css tag?


assuming HTML
<div>
<p>...</p>
<img ...>
</div>

one CSS solution would be:

div p {margin:...em;}

this suggests a margin for the paragraphs contained within divs.

As always, a URL would be helpful.

--
William Tasso - http://WilliamTasso.com


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have margin-left: 10%; margin-right: 10%; only sometimes?? Cal Who ASP .Net 4 05-17-2010 12:17 PM
How to have margin-left: 10%; margin-right: 10%;" only sometimes Cal Who ASP .Net 1 05-16-2010 08:53 PM
how to Specializations of function Templates or Overloading Function templates with Templates ? recover C++ 2 07-25-2006 02:55 AM
Epson 4000 - margin to margin? nobody Digital Photography 6 03-28-2005 05:17 PM
Templates templates templates JKop C++ 3 07-21-2004 11:44 AM



Advertisments