- This topic is empty.
-
AuthorPosts
-
May 7, 2011 at 11:36 pm #32633larryelMember
I’ve looked at the various ‘Left Align and Right Align Text on the Same Line’ discussions, but none help my particular case.
I have a footer which has copyright text left aligned in a colored box which spans the page width; this works fine. And I can right align a ‘Last Update’ text also, but it end up on the next line. I could make the text easily be right justified on the same line but I have this colored ‘box’ which I want it to appear in with the copyright text.
How do I get it to display within the colored area also? Here is the pertinent code:
-footer.html-© 2010 United Church of the Valley, Murrieta, CA
Last Update
Here is the related CCS:
/* — COPYRIGHT INFO — */
#copyright {
padding: 3px 0 3px 8px;
border: 1px solid #000;
background-color: #00CCFF;
font-weight: bold;
color: #000000;
font-size: .8em;
width: 998px;
}#copyright .alignleft {
text-align: left;
float: left;
}#copyright .alignright {
text-align: right;
/*float: right;*/
}
/* — FOOTER — */
#footer {
position: relative;
bottom: 0;
left: 2px;
}Want it to look like this:
[c2010 xxx Last Updatexx xx]
(where [ ] represents the colored footer area created by the #copyright cssbut instead it looks like:
[c2010 xxx ]
Last UpdateMay 7, 2011 at 11:39 pm #77265larryelMemberOops: here is the html so you can read it:
© 2010 United Church of the Valley, Murrieta, CA
Last Update
May 7, 2011 at 11:46 pm #77266larryelMemberyou can see this footer and what I refer to as the colored box (the #copyright css, and without the Last Update text) at: unitedchurchofthevalley.org
May 8, 2011 at 2:55 am #77268DogsGhostMemberlooks like you have you have an extra closing p tag in front of Last Update.
Concerning your issue it sounds like you just want to take the styling you have for #copyright and move it to the footer, so your second paragraph is affected by that styling.
© 2010 United Church of the Valley, Murrieta, CA
Last Update
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.