WordPress.org

Ready to get started?Download WordPress

Forums

CSS Help (11 posts)

  1. cyrjm
    Member
    Posted 1 year ago #

    Ok, so I'm usually pretty good at using the tools in Firefox and Chrome to make CSS changes. Admittedly, I'm a CSS rookie in all respects.

    I'm working on a site where all I'm trying to do is align the bottom of the logo to bottom of the top navigation menu items. Unfortunately, I'm using an "under construction" plugin so I can't show you the actual page, but here is what I'm trying to edit:

    <!-- Header -->
    		<header id="header" class="container site-header" role="banner">
    
    			<div id="header-inner" class="sixteen columns over">
    
    				<hgroup id="masthead" class="one-third column alpha">
    					<h1 id="site-title" class="site-title"><a href="http://smithcoadventures.com/" title="Smith Co Adventures" rel="home"><img src="http://smithcoadventures.com/wp-content/uploads/2012/10/SmithCo_Logo_Web31.png" class="scale-with-grid" /></a></h1>
    									</hgroup>
    
    media="all"
    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    }

    I'm trying to change "baseline" to "bottom" and when I do that in Chrome, it looks the way I want it. My question is, what selector do I use in my child theme?

    I have tried

    #header #img {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: bottom;
    }

    I've also tried a bunch of others, I know it's something super simple that I'm missing. Any advice would be greatly appreciated and worthy of an internetz high five.

  2. cyrjm
    Member
    Posted 1 year ago #

    I should also note that I have removed the site title with the following:

    #site-title {
    margin-bottom: 0px;
    }
  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    Your query is better suited on a forum that specalises in CSS support.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    In the meantime, try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  5. cyrjm
    Member
    Posted 1 year ago #

    Andrew, I will re-post. esmi, please read the first paragraph.

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    I did. You didn't mention Firebug.

  7. cyrjm
    Member
    Posted 1 year ago #

    Sorry, to clarify I am using Firebug as well as Chrome's tools. I've been tinkering with this for an hour or so with both browsers, can't get it to work. I can get it to work when I change it live in Firebug, but I'm not writing the proper code. When I add it to my child theme, no luck.

  8. cyrjm
    Member
    Posted 1 year ago #

    Can I get a moderator to move this to the CSS forum...my apologies for posting here. Thanks!

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    There isn't a CSS forum here. It is usually beyond the scope of these forums to deal with general CSS issues. Perhaps you need to try a dedicated CSS resource such as http://www.css-discuss.org/ instead?

  10. cyrjm
    Member
    Posted 1 year ago #

    Saw the Themes and Templates forum with xhtml and css help. I'll give that forum a shot.

  11. MickeyRoush
    Member
    Posted 1 year ago #

    Another good forum for CSS help.
    http://csscreator.com/forum

Topic Closed

This topic has been closed to new replies.

About this Topic