Build Your Own Business Website header image

Welcome to our Members Only Forum

You are welcome to view the content on our Forum, just scroll down to view this forum post.
If you like what you find and want to be able to post a question, please check out our subscription options.
Please feel free to search the forum using either the Google Site Search above or the forum search below.

Avatar
Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Centering content in a responsive way
Avatar
Bas Burger
The Netherlands
Jedi
Members

Community Member
Forum Posts: 316
Member Since:
July 20, 2012
sp_UserOfflineSmall Offline
1
March 1, 2018 - 10:55 am
sp_Permalink sp_Print

Hi Rick,

I have made a header with tree columns. In the first there is the logo. In the second the phonelink and in the third a background image with a link. With custom css i have put them at the right place (centered). But if i look at it on a phone they are not centered. I think that is because of the padding i have set in desktop mode but does not work in mobile mode. Is there a better way to center the content so it stays in the center regardless the apparatus you use?

May you want to look at the site it is here.

Kind regards Bas

Avatar
Pierre Cote
Moderator
Members

Moderators

Community Member
Forum Posts: 1160
Member Since:
September 21, 2014
sp_UserOfflineSmall Offline
2
March 1, 2018 - 12:51 pm
sp_Permalink sp_Print

Hi

For the <div class="phone_number"> try to set the margin-right and margin-left to : auto

Pierre ( postrophe )

Avatar
Bas Burger
The Netherlands
Jedi
Members

Community Member
Forum Posts: 316
Member Since:
July 20, 2012
sp_UserOfflineSmall Offline
3
March 2, 2018 - 3:59 am
sp_Permalink sp_Print

Yeah, that does it Pierre. Thanks!

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 228

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Keith W Jones: 1428

Brian Tozer: 1004

Carolin: 982

Heidi Hafner: 508

John Cunningham: 423

Reece Morrel: 353

Newest Members:

emma62755

sharonmarks

emma80233

Tijs de Jong

Daniel Frey

mutek

Forum Stats:

Groups: 8

Forums: 46

Topics: 6995

Posts: 34796

 

Member Stats:

Guest Posters: 6

Members: 6761

Moderators: 2

Admins: 2

Administrators: Rick Anderson, Rick Anderson

Moderators: Pierre Cote, Laura Nugent