CSS Help Please for Text Alignment
Motorsports
Registered Users Posts: 26 Big grins
I am trying to do the simplest thing but struggling - would be most grateful for another pair of eyes!
I am using the 'entire site' customisation to add HTML & CSS to add a copyright message at the bottom of the page that stays fixed. This works perfectly .... except that I cannot get it to align right which is what I want.
html:
<div id="copyright" style="text-align:right;">
© blah blah etc
</div>
css:
#copyright {
background: #000;
background-color: rgba(0, 0, 0, 0.4);
padding: 3px;
position: fixed;
bottom: 10px;
font-size: .8em;
color: #fff;
text-align: right;
margin-right: 36px;
margin-left: 36px;
filter: alpha(opacity=70);
}
If I use this in a straight web page it works as expected with the message right aligned. But not in smugmug. I am using a stretchy smugmug layout - is there some limitation preventing this from working? You'll see that I have the align statement on both the html and the css but either or still does not work.
Just to explain, I have my header pinned and so can't use the standard footer and pin that. I'd like the copyright message to be visible all the time on every page at the bottom.
I am using the 'entire site' customisation to add HTML & CSS to add a copyright message at the bottom of the page that stays fixed. This works perfectly .... except that I cannot get it to align right which is what I want.
html:
<div id="copyright" style="text-align:right;">
© blah blah etc
</div>
css:
#copyright {
background: #000;
background-color: rgba(0, 0, 0, 0.4);
padding: 3px;
position: fixed;
bottom: 10px;
font-size: .8em;
color: #fff;
text-align: right;
margin-right: 36px;
margin-left: 36px;
filter: alpha(opacity=70);
}
If I use this in a straight web page it works as expected with the message right aligned. But not in smugmug. I am using a stretchy smugmug layout - is there some limitation preventing this from working? You'll see that I have the align statement on both the html and the css but either or still does not work.
Just to explain, I have my header pinned and so can't use the standard footer and pin that. I'd like the copyright message to be visible all the time on every page at the bottom.
0
Comments
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
It is ... but still a bit of work to do http://photos.gridshots.com
____________________________
http://photos.gridshots.com
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
That was key (though I admit I don't understand why it needs the width). That works although now it won't respect the right margin. But I've put it at centre for now because it lines up better with some other pages Im working on and I'll come back to this later.
Thanks again for your advice. What a lovely forum this is!
____________________________
http://photos.gridshots.com
In my case although the block is at the bottom when I go to customise/entire site the editable block is actually shown at the top of the page - its nowhere near what I see on the screen. You may have to hunt for it
____________________________
http://photos.gridshots.com