View Single Post
Old 10-24-2012, 06:02 AM   #6
Man Eating Duck
Addict
Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.
 
Posts: 252
Karma: 69784
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
Quote:
Originally Posted by GraciousMe View Post
Let me try to understand this.

I get attributes of .caption classes, but what means attribute of the .Figure1. Do you mean that each picture has a class? (Unlikely...)

BTW, the negative value for the .caption margin-top worked fine! I use -2em for a tighter look.
It's probably just a small mixup of class and title, a h3 class would do it. From your original example:

Code:
<h3 title="Figure 1" class="figure"><img alt="" src="../Images/figure_1.jpg"/></h3>
and in the CSS (from theducks' example):
Code:
h3.figure {
    margin: 0; 
    padding: 0;
}
You could also omit the "h3" from the CSS to have it apply to all paragraphs with class .figure. Just experiment

Sigil's ability to "open with" enables you to edit the css in a different editor and have your changes reflected instantly in the book view.
Man Eating Duck is offline   Reply With Quote