Modify default.css
-
Hei
I’m using Docxpresso and for some reasons, i need to modify the CSS for the html-rendered page.
The reason is that I’m using a sticky Menu… and then, a click on a anchor will scroll the page to the right position… but the title (the anchor target) is hidden back my sticky menu.I found that if i modified some lines in docxpresso\classes\ODF2HTML5\default.css, the result is the one expected.
.h5p_layout span[id^=”_Toc”]{
padding-top: 10px;
margin-top: -10px;
}
IS MODIFIED TO
.h5p_layout span[id^=”_Toc”]{
padding-top: 40px;
margin-top: -10px;
}But I’m not sure this is the best pratice for this. ( the first reason I see is in case of plugin update)
Do you have any advice?Thanks
The topic ‘Modify default.css’ is closed to new replies.