margin and templates

S

Stijn Goris

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
 
W

William Tasso

Stijn said:
...
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top