Its not clear what you want the cards to be aligned with because on that page there is only the cards and the filter row? There is no ârest of websiteâ so I donât know what you want aligned with what
I would suggest that you donât use percentage padding or percentage widths to centre the page but rather use a max-width in px (or rem) to stop the page getting to wide and then use margin: auto to centre it.
Also rather than setting widths on individuals sections it would be better to have your content controlled on one wrapper and then the internal elements will always fit that wrapper if designed correctly.
If you can clarify the problem you are having then perhaps I can offer a better method?
You can reduce the size of each image but you need to think about how you want the design to look.
If you give the image a max-width so that it doesnât get too big using additional code like this:
.home .left img,
.home .right img,
.about .image img{
max-width: 500px;
height: auto;
display:block;
}
.home .left img {
margin: auto auto auto 0;
}
.home .right img {
margin: auto 0 auto auto;
}
Then the problem will be that there will be white space between your text on the left and the image on the right because you have set one to 55% and one to 45% width. If the image is smaller then you have the whitespace where the image would have filled.
On the other hand if you allow the text to stretch the line length becomes too long on wide screens. It may simply be that you should go for a narrower screen to start with using a max-width as I mentioned before rather than stretching to infinity. On my 2500px screen the design is far too wide to be readable.
These are really design issues rather than css issues as such so you really need to decide what you want:)
I donât have a lot of time today but I would use a page-wrapper for everything except the footer and use a max-width instead of all your percentages. (This would make everything line up more easily.) Then remove a number of the widths and percentage padding from inner elements.
Hereâs roughly how I would do it although I would use rem instead of px for a lot of your px sizes.
I removed the absolute positioning from the statistics and put it back in the flow by letting the flex box wrap and setting that item to flex 100%. I removed some heights as you donât want heights on elements that use fluid content. I removed the floats on the form and used display: table-cell instead so you donât need to match the height with a fixed ox.
I adjusted a number of settings so that you donât get a vertical scrollbar at smaller sizes.
I also made the images smaller in the eft and right sections and centred them vertically instead of 100% height.
You repeated yourself a lot and I didnât have time to rationalise it all but when you have similar sections you should use a common class rather than creating a new class and use most of the original code. Thatâs just duplicating stuff for no purpose and makes it hard to change easily in one go.
Why would you want to move the logo and the register button?
At the moment the left edge of the logo lines up with the left edge of the main content and the register buttons right edge lines up with the right edge of the content.
Where do you want to move it to and why? As I said before it will look odd and you put the whole page alignment out of kilter.
It can easily be moved right by applying a margin to it.
e.g.
.link_buttons{
margin-right:1rem
}
However as I said a few times that looks odd and now doesnât match anything. You have to stop micro managing every element and let them sit naturally along with other elements.
It looks perfectly aligned on the vertical center line to me. What did you want it to look like?
You used the orange_class which you have in the header so you would have been better using a new class. However you can modify it by context.
However you probably should have set up a custom class for those types of buttons and given them a unique class name and not a class name based on its color. What happens if you decide you want the buttons the color red at a later date. You will then have an orange class in the html but the css is red! Thatâs just confusing.