• I have a simple css issue. I applied inline styles to the domain checker on this page:
    http://www.jackrabbit.host

    and the inline styles worked fine. So I took the styles and created ID’s in my style.css sheet and applied the id’s to the domain checker elements but the id’s aren’t working.

    Here is the css I put at the end of my style.css sheet for my theme:

    #home_domainchecker {
    
    	width: 648px;
    	padding:5px;
    
    	}
    
    #home_www {
    
    	margin: 10px 0px 0px;
    	position: absolute;
    	font-size: 18px;
    	}
    
    #home_domaininput {
    
    	margin: 0px 0px 0px 52px;
    	height:40px;
    	font-size:18px;
    	width:642px;
    	}
    
    #home_selector {
    
    	position:absolute;
    	margin: -8px 0 0 222px;
    	}
    
    #home_domainbutton {
    
    	position: absolute;
    	margin: -40px 0px 0px 805px;
    	width: 90px !important;
    	height: 40px;
    	font-size: 18px;
    	}

    and here is the code I’m applying the id’s to:

    <div id="action" class="clearfix box padding-box">
    
    <form action="http://www.jackrabbit.host/high-speed-hosting/whmcsportal/domainchecker.php/?" method="post" id="home_domainchecker">
    	<input type="hidden" name="direct" value="true"/>
    		<div id="home_www">www.</div>
    			<input type="text" name="domain" size="20" placeholder="Choose a new domain" id="home_domaininput"/>
    				<div id="home_selector">
    					<select name="ext">
    						<option>.com</option>
    						<option>.net</option>
    						<option>.org</option>
    						<option>.us</option>
    						<option>.info</option>
    						<option>.biz</option>
    						<option>.uk</option>
    						<option>.name</option>
    						<option>.ca</option>
    						<option>.co</option>
    						<option>.eu</option>
    						<option>.co.uk</option>
    					</select>
    				</div>
    			<input type="submit" value="Go!" id="home_domainbutton"/>
    </form>
    
    </div>

    what am I doing wrong? Definitely not an expert here :/

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • What computer or device are you checking the site on?

    On line 5316 of your stylesheet, you’ve forgotten the final closing } to close off the media query:

    @media
    (-webkit-min-device-pixel-ratio: 2),
    (-moz-min-device-pixel-ratio: 2),
    (min--moz-device-pixel-ratio: 2),
    (-o-min-device-pixel-ratio: 2/1),
    (min-device-pixel-ratio: 2) {

    So everything you’ve added after that line only applies to devices with a pixel-ratio of 2 (like my Retina MacBook Pro). If you add the closing bracket on line 5316, everything should be fine.

    Thread Starter ClintonLee83

    (@clintonlee83)

    Oh my gosh Stephen… Everything works now. That was going to drive me crazy!

    I’m using a 2008 macbook.

    Thank you! How did you find that??

    I use Safari’s Web Inspector, but you can use any inspecting tool. Firebug is a pretty popular one. With a web inspecting tool, you can right-click on any element and see what CSS rules and media queries are being applied to that element. For more details, I’d recommend this link: http://www.themesandco.com/snippet/firebug-best-spent-6-minutes/. Most of the information is relevant to all inspecting tools, not just Firebug.

    Thread Starter ClintonLee83

    (@clintonlee83)

    Ah, ok. I’m using Google chrome’s web inspector but I still couldn’t figure out what was going on with the css.

    Do you have time to help with one other small issue? We can PM if you’re up for it, the issue is so specific that I don’t think anyone would ever search for it so I don’t think a new thread is necessary.

    Either way, thank you for your help Stephen! You’ve been awesome 🙂

    Unfortunately, this forum has no PM function. Unless your issue involves sensitive information, you can (and should) go ahead and post your question here.

    Thread Starter ClintonLee83

    (@clintonlee83)

    Ok, I’ll start a new thread then.

    Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Simple CSS Problem’ is closed to new replies.