Reputation: 449
This is the complete design I'm going for:
And this is the code: http://jsfiddle.net/rlesko/f3R7r/4/
A couple of questions:
margin-left
do nothing when changed for the object #date
?#separator
object on a .post-bg
(the white background)? I used margin-left
for that in my CSS.<h2>
text's right border to the <p>
text's right border but keep the <h2>
text alignment to the right?Upvotes: 0
Views: 138
Reputation: 317
The margin works, but the h5 is weird and the appropriate margin to place it like you want to is : margin: 0 0 0 135px; (tested in firebug)
margin: 0 auto;
text-align: justify ?
Because media fire makes a redirection and transforms your url into : http://www.mediafire.com/?f9selsldbgm6dnw and then only you can dl the file. This is not a real direct download, that's why your font won't work. Upload it on you own domain for example.
Try this one instead : http://www.amws.fr/Univers.ttf
Edit : I'd also suggest using a complete @font-face code, so that all browsers support your css well :
@font-face {
font-family: 'LiberationSansRegular';
src: url('http://www.amws.fr/Univers.eot');
src: url('http://www.amws.fr/Univers.eot?#iefix') format('embedded-opentype'),
url('http://www.amws.fr/Univers.woff') format('woff'),
url('http://www.amws.fr/Univers.ttf') format('truetype'),
url('http://www.amws.fr/Univers.svg#LiberationSansRegular') format('svg');
font-weight: normal;
font-style: normal;
}
Upvotes: 0
Reputation: 67194
lots of points are best put into separate questions, but anyway...
It does work! Margin is set to 550px to prove
You can use margin: 0 auto;
on the separator element to center it. See here.
Use text-align: justify;
for your desired text alignment on both sides. See it here.
I think it has to do with not being able to serve fonts cross-domain. But I am not 100% sure.
Upvotes: 2