Help with css and Google Fonts
naomimaya
Registered Users Posts: 32 Big grins
Hi there,
I'm not that good at doing the CSS stuff... can anyone help me:
- add a Google font (Rochester) for my headings (*not every single H1, just specific ones)
- format a background image to my div tag? I want to make the second to last box look like the last box *which I made as a graphic for comparison, but it's got too much space around the image and not enough around the text.
This page: https://www.naomimaya.com/Español
Thanks!
0
Comments
First, you need to add this to your theme's custom CSS section. If you put it any other place, it won't work.
Second, to use 'Rochester' on selected text add or edit an existing HTML/CSS block.
I would NOT use an image as a background in this case. I would crop your image down to fit just the graphic. With that, this is your "Off Duty" block. I cropped your graphic 650px x 138px.
This is a screen shot from my testing site. Top is your testing graphic and the bottom is the HTML/CSS block.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Thanks! Yours looks good! But mine's not fully working
The Rochester font isn't showing up. I put that text in the theme CSS, but I still have the "p" tag in the html block. Is that the problem?
I didn't mention it because I didn't think it would matter, but I always put my fonts first. So using the Firefox Web Tools, I moved your font from the bottom to the top and it worked. So put this on the very top of your theme's custom CSS section.
Also, I realized after I went to bed that I forgot to include the CSS that you need to put in your HTML/CSS block.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Awesome! Thanks so much. It's perfect now