Some layout concerns; text centering...

User 2484360 Photo


Registered User
3,293 posts

Eric Rohloff wrote:
Adam East wrote:

That is CSS code, you would place that in your custom.css file.

Not if your using
<style>
html{ }
</style>

I do this a lot to make changes then switch it to external style sheet. Saves a little time.


For RLM you should be placing it in a CSS file, not inline or in your page header. Granted you can, but it is not the best practice.

User 187934 Photo


Senior Advisor
20,181 posts

Agreed, I only do it for getting it correct then move it to the style sheet for a permanent home.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2676159 Photo


Registered User
41 posts

Hi again,

Steve wrote:
Hi David,

I would change what you have:
body > .row > [class*='coffee-span-'].header-container {
[..]
height: 100%;
}


to this:
html {
background: url(../images/ddg_background.jpg) no-repeat center center fixed;
[..] background-size: cover;
}


Unfortunately that doesn't seem to work. What happens is the background image gets completely covered by the page area - ie rather than the page.. [engages brain...]

Duh.. There's a body background set in the main.css. I guess I may've set that waaaaaay back in the very early minutes of the project before I decided to re-do large parts of things from scratch :) That fixed, and things seem to look and work a bit better.. (And yes, you may nominate that for "understatement of the year" if you so wish :) )

Thanks very muchly for the help - and again thanks to Mansour for the original idea
david@kiwiscene.kiwi


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.