• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

I have broken the site doing CSS

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › I have broken the site doing CSS

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 8 years, 4 months ago by Victor Font.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 8, 2017 at 12:35 pm #208855
    noah
    Participant

    Hi there,

    I have had to move a site to a new domain http://www.betterretirementhousing.com, and all was going well until I tried to edit the CSS to make the header image more attractive.

    I put this in the CSS file and the result is a broken site.

    Any idea what is going on or how to fix?

    .header-image #title-area, .header-image #title-area #title, .header-image #title-area #title a {
    display: block;
    float: left;
    width: 620px;
    height: 124px;
    margin: 0;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    }

    #header {
    width: 960px;
    height: 124px;
    margin: 0 auto 0;
    padding: 5px;
    }

    #header .widget-area {
    width: 340px;
    color: #333333;
    float: right;
    margin: 0;
    padding: 0;

    http://www.betterretirementhousing.com
    July 8, 2017 at 12:58 pm #208858
    Victor Font
    Moderator

    You made the image too wide, that's all. First, please take the time to read this article. It will provide an understaning of what's going on. https://victorfont.com/understanding-genesis-framework-site-header-layout/

    Next, add background-size: contain; to .header-image #header #title-area at line 202 in style.css.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 8, 2017 at 1:56 pm #208861
    noah
    Participant

    I am sorry I am so useless at this.

    Are you saying I just write:

    add background-size: DO I SPECIFY 960?
    contain; to .header-image #header #title-area

    at line 202?

    Not this, which is what I have copied from Chrome CSS edit?

    .header-image #header #title-area {
    background: url(images/logo.png) left top no-repeat;
    }

    .header-image #title-area, .header-image #title-area #title, .header-image #title-area #title a {
    display: block;
    float: left;
    width: 620px;
    height: 162px;
    margin: 0;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    }

    #header .widget-area {
    width: 300px;
    color: #333333;
    float: right;
    margin: 0;
    padding: 0;
    }

    what I am trying to achieve is in this pic.

    Better Retirement Housing header in something like the right place

    There is too much white space below the header as well.

    And duplicated RSS for posts and comments for some reason below the menu.

    July 8, 2017 at 2:36 pm #208863
    noah
    Participant

    I write this for any other complete CSS idiots out there:

    For some time, even years, I have thought you copied the right hand side CSS element box in the Chrome / Firefox inspector and copied this into your CSS file.

    (This has not been altogether that successful over the years, but then I do the absolute minimum of this, using WordPress to ... convey words. I'm not a developer at all.)

    Usually, what CSS I have done has been provided by kind souls, such as Victor, above.

    I fact, you click on the link in the element inspector (in Chrome), get to a copy of the entire CSS file and make the amendments (if they have not been made by clicking the link).

    You then copy that entire file and place it in your website's CSS stylesheet.

    (Well, I did not know, so may be others don't.)

    In this case, the order of doing the amendments was important:

    1/ reduce the depth of the header;
    2/ reduce the space around the search box widget area;
    3/ Then increase the size of the logo.

    I still have duplicated comment and post RSS for some reason under the menu, which I think means chopping off some HTML. Another time.

    This will strike many here as terribly ill informed ... in mitigation the words on this site (approx 100,000 of them) have been quite influential ...

    July 9, 2017 at 2:51 am #208870
    Victor Font
    Moderator

    You don't mention 960 with background-size: contain. Your final code looks like this:

    .header-image #header #title-area {
        background: url(images/logo.png) left top no-repeat;
        background-size: contain;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble