Robert
Robert

Reputation: 137

Any chance to center this text element

I am using a managed hosting for my photography website. Customization of the website can be done only by adding CSS code.

In the following page I would like to center the text in the middle ("ROBERT POLLAI") but I cannot figure out the right CSS code to access that element.

https://www.the-ninth.com/home1

Any hints on how to achieve this are highly appreciated!

Regards, Robert

Upvotes: 0

Views: 79

Answers (5)

Mohamad Pishdad
Mohamad Pishdad

Reputation: 379

change the following CSS:

#content_page_wrapper h2 ._4ORMAT_content_pages_wrap #text_1 {
     text-align: center;
}

Upvotes: 0

OM PRAKASH
OM PRAKASH

Reputation: 393

Just add this CSS and it's done. As @Joykal has mentioned in the comment.

#content_page_wrapper h2 ._4ORMAT_content_pages_wrap a > span {
    display: inline-block;
    text-align: center;
}

Upvotes: 2

Er Amit Anand
Er Amit Anand

Reputation: 50

you can you text-align: center !important; if facing issue,then also use align="center" on . so you can try.

Upvotes: 0

Hamidreza Soltani
Hamidreza Soltani

Reputation: 624

You can add below code at the end of stylesheet.css file.

#content_page_wrapper h2 ._4ORMAT_content_pages_wrap #text_1 {
    text-align: center !important;
}

Upvotes: 1

MostafaAdel90
MostafaAdel90

Reputation: 1

edit text-align: left; from this CSS Code and text will center and delete another two text-align: left;

#content_page_wrapper h2 ._4ORMAT_content_pages_wrap a{
    text-align: center;
}

content_page_wrapper h2 ._4ORMAT_content_pages_wrap #text_1{
    text-align: left;
}

#content_page_wrapper h2 {
    text-align: left;
}

Upvotes: 0

Related Questions