Problem in CSS formatting

Asked

Viewed 91 times

1

Noble friends,

I am working on an ebook in the Sigil program. By linking the css stylesheet to xhtml I can format the H1, H2 and H3 tags. However, in the same file, I cannot format p and div tags. I have already noticed the nomenclature and could not find the error.

1 answer

0

Which Voce selector are you using? Note that some selectors are stronger than others and so if you try to change the style using a weaker selector will not work, try to put !important after every css property you want to edit to solve this.

  • Vilson, it turns out I’m copying the same rules that I had used in another ebook. Now it just doesn’t work.

  • could post link to the project or put some of the css and html?

  • H1 { font-family: Arial, "times new roman", Georgia, Serif; color: black; font-size: 2em; text-align: center; margin-bottom: 2em; margin-top: 3em;

  • p { font-family: Arial, "times new roman", Georgia, Serif; text-align: Justify; font-size: 1.1em; margin: 0; margin-bottom: 0.5em; text-indent: 1em; ;}

  • The H1 tag works. The p tag does not.

  • uses bootstrap, or some third-party css, or normalize?

  • tries deleting cache, Ctrl+F5 in browser

  • I’m using Sigil to make an ebook. You think Ctrl+F5 will influence?

  • I don’t even know what this is, I’m also bad at css.

  • You believe that bootstrap is better for building ebooks than Sigil?

  • you tried with ! Mportant?

  • as for the sigil or bootstrap if I were I would not use any, I had many problems using frameworks that promised to do magic but actually only complicate things.

  • But how to make an ebook without using such a program? Will Webstorm help?

  • something else I don’t know how much Voce knows css, but I doubt you know enough, css is easy and this is the problem because it is easy we end up thinking we already dominate, try to study more css.

  • the easiest way and javascript, javascript and much easier than css, can use the canvas tag

Show 10 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.