Multi
Multi
H2 Text
Topic Started: Monday, 25. January 2010, 22:19 (243 Views)
.John
Member Avatar
Damn Kitty bit my finger. ):
Type of support: [Graphics, Theme/Coding, General Board, Other] Theme/coding
What you are having trouble with:centering the H2 Text
What have you tried so far: I don't know how to center it. :s
Notes (Optional): I want the h2 text centered. It should be the default theme. (the first one that is on there.)
Posted Image
Off
Profile
Quote
Top
 
Joe
Member Avatar
Hi.
Are you using the 3-piece H2 code?

If not, try this- put it anywhere in the CSS.

.category h2, .topic h2, #portal h2 {
text-align:center!important;
}
Joe
Off
Profile
Quote
Top
 
Sabre
Member Avatar
Level 9
Do you have a 3 piece h2

Quote:
 
/***** Three Piece H2 *****/
/* h2wrap is the center stretch.*/
.h2wrap {
background: url(URL OF CENTER H2 PIECE HERE) repeat-x;
}

/* h2left is the left image. */
.h2left {
background: url(URL OF LEFT H2 IMAGE HERE) no-repeat top left;
height: 32px;
}

/* h2center is the text itself. */
.h2center{
padding: 9px 0px 0px 54px;
height: 32px;
text-align:(ADD TEXT ALIGN HERE) {ex: center, left, right}
}

/* h2right is the right image. */
.h2right {
background: url((URL OF RIGHT H2 PIECE HERE) no-repeat right top;
height: 32px;
}

/* Collapse/Uncollapse Images */
.collapse,.uncollapse {
right: 5px;
top: 2px;
}

thead td,thead th {padding:0px;background: inherit;border-width:0px;}

.calh2 { background: null!important;height: auto!important; font-weight: null; padding: 0px !important;border: null!important;}

/* Leave the above alone. For the bottom, style your profile h2's. */
.profile thead td,.profile thead th {padding:0px;background: inherit;border-width:0px;}
currently going through my old posts on here... how did you people stand me?
Off
Profile
Quote
Top
 
.John
Member Avatar
Damn Kitty bit my finger. ):
Thanks Darkray. This can be completed now.
Posted Image
Off
Profile
Quote
Top
 
Sabre
Member Avatar
Level 9
Oops, add a semi-colon to the end of the text-align part. (semi colon: ; )
currently going through my old posts on here... how did you people stand me?
Off
Profile
Quote
Top
 
Joe
Member Avatar
Hi.
Yes, these are all correct.

text-align:center;
text-align:left;
text-align:right;


Your topic has been marked resolved or inactive. If the problem persists or reappears, feel free to request Live Support or repost your topic.
Joe
Off
Profile
Quote
Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Resolved Issues · Next Topic »

Welcome Guest [Log In] [Register]
Outline Live
Loading..
Loading..