Off Centered

User 494996 Photo


Registered User
65 posts

Can someone help me?

if you look at my site from your mobile phone - I'm using my Samsung 7 Edge - I have a couple of boxes (text and pictures) on my home page (at the bottom) that are off centered. I don't comprehend the spans and sizing and columns quite well to understand how to get them centered.

Here is the site: http://dozwm.net/index.html

I attached 2 pictures from the software (laptop)
also 1 screenshots from my samsung.

Thanks in advance.
Attachments:
---- Michelle K.
User 188640 Photo


Registered User
895 posts

Check and see if you have your margins set to 'auto' for those rows/columns. That's usually is the issue.

When you ask a question like this one it's a great idea to upload your rsd project file. That way anyone who looks at your file will see what settings should be changed to fix what's not working the way you want it to work.
A Rose is Just a Weed in a Corn Patch!
User 494996 Photo


Registered User
65 posts

Thanks Ernie!

Just now when I tried to upload my project, it gave me a "forbidden error".

I'm going to work on understanding the column 'auto' width.
---- Michelle K.
User 494996 Photo


Registered User
65 posts

So I got my black text box to work. but not my row of 3 pictures. Thanks again for the help. I'll just live with it for now til I have a little more patience.
---- Michelle K.
User 188640 Photo


Registered User
895 posts

You can zip your project file and try to upload it that way. It's probably to big. Or put it up on DropBox or your test domain and put a link to it in here.
A Rose is Just a Weed in a Corn Patch!
User 2706435 Photo


Ambassador
444 posts

Basically, a row has a default number of equal width spans. Columns take up a number of spans. When you create a row, it comes with a column automatically set to 12 spans (the entire width).

In the desktop view, you have the columns set to 4 spans for your row with the three pictures. That means a column takes up 4/12 widths of the row. At a breakpoint 814 or 812px, you changed the span width to 6. But - with three columns, you get two columns across, and a third column underneath to the left.

At the 5xx px breakpoint, the column span was set to 8. So the width of the column will be 8/12 of the row. So, the columns will be about 75% of a row width. Only one column can be put into a row horizontally, so the columns start to stack. (Remember a row - can "line wrap" and does not necessarily end on the same horizontal "line" on your screen. A row could have ten columns that each have a span of 6 - so that the row actually wraps 4 times after going across the screen for the first two columns.

The simple solution at that breakpoint to set the spans back to 12, then you can adjust paddings and margins for that breakpoint. But for the tablet view, something different will be needed if you want it centered. For that column that in underneath the other two, you will want to "push" it to the center. It is 6 spans wide. So there are 6 "empty spans" of width yet in the row. In the layout, push the column three spans using the dropdown for push. It will now be centered. You may need to reset the "push" to 0 for the smaller breakpoint. What the push does, it move the column over to another span (and vice versa for pull). There are other complicated used for push and pulls. There are also other ways to center content, but if you are still learning about column spans, just stick to using spans and the occasional push/pull for now.

http://www.coffeecup.com/help/articles/managing-the-responsive-grid-with-layout-maker/
http://www.coffeecup.com/help/articles/responsive-actions---the-stack/
User 188640 Photo


Registered User
895 posts

I noticed one thing in your code that you might want to fix. Your picture link using the black box (The 40 Day Consecration) is named consecration2.jpg.png . You have two different image types attached to that image. Just something I noticed.
A Rose is Just a Weed in a Corn Patch!
User 494996 Photo


Registered User
65 posts

I FINALLY figured this thing out lol ... But I have a new problem. :/

On my Samsung 8, the breakpoints are not centering my pictures at the bottom of my homepage.:rolleyes:

:(:(:(:(:(:(:(:(:(:(:(

I'll need to come back to this. AGAIN as it relates to my phone (which is how I test mobile design)

Thanks all for the advice!!! :P
---- Michelle K.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.