Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
493 views
in Themes by
hi

i use official version 1.7 theme(flatbox).i want to use h1 tag above all page but when i use h1 tag,my text use h1 class.text size change and a blue bar background created.

i think it's better to change class names in future update.

thank you
Q2A version: 1.7

1 Answer

+1 vote
by
selected by
 
Best answer
You could apply the same fix for your own HTML/CSS code and add a class to the H1 tag and apply the style you want to that custom class.
by
yes.i can fix that.but it's hard for me(and all newbies)
now i want use h2 tag in above page.i want to have h1 style(copy h1 class.just change "h1" to "h2" and add that at end of css)
h2 {
    padding: 8px 52px 8px 20px;
    margin-bottom: 5px;
    background: #3498db;
    color: #fff;
    margin-top: 0px;
    position: relative;
    line-height: 1.5em;
}
h2 a {
    color: #fff;
    border-bottom: 1px dotted #fff;
}
h2 a:hover {
    color: #fff;
    border-bottom: 0;
}
h2 a {
    line-height: inherit;
    border: none;
    text-decoration: none;
    opacity: 0.85;
}
h2 a:hover, h1 a:focus, h1 a:visited {
    line-height: inherit !important;
    color: #fff;
    opacity: 1;
}

but h2 tags also used in other sections and when i add h2 tags,that parts styles change too.
please help me to add a text with h2 tag that have h1 style.
thank you
by
As I understand it, your comment contains a question that has nothing to do with your original question. For a matter of styling, it doesn't matter whether it is h1 or h2, you can use any of them. It is very hard to guess what you are trying to do but this should be useful and fix any issue you can have:

HTML:

<div class="parent-class">
    <h1>Blah</h1>
<div>

CSS:

h1 {
    color: blue;
}

.parent-class h1 {
    color: red;
}

So whenever the h1 is inside the class "parent-class" it will be red. In any other placement it will be blue.

Anyway, I'd recommend you to read some CSS tutorials. They aren't quite hard and have nothing to do with programming but rather styling.
by
sorry for my weak english writing skill.(i try hard)
yes.i must to read more...
thank you
...