February 18, 201313 yr Morning everyone, I'm in the process of building a new mock-up site, using a HTML5 template, and I am trying to add a login\registration drop down to my current theme. The code behind the registration system works fine - Unfortunately I have come up against some CSS problems when I try merge the two components together which I have been pondering over for about 5 hours now!! What the page currently looks like; dev jacent net / index php What it should look like (excusing the lack of styling to the content); dev jacent net / index_new php It looks to me that the theme's stylesheets are adding additional styles to the top drop down section, however as that section is within its own div's etc, I'm unsure as how to work around it?Any tips would be appreciated
February 18, 201313 yr Seems the different font used in your new example is causing the text to wrap as it's not fitting inside it's container. Quick fix is to increase the width of your a.open element: .tab a.open, .tab a.close { height: 20px; line-height: 20px !important; padding-left: 30px !important; cursor: pointer; display: block; width: 130px; /*I changed this from 100px to 130px */ position: relative; top: 11px; Edit: And for the #panel, just take off the height element so the content fits accordingly: #panel { width: 100%; height: 250px; /*DELETE THIS */ color: #999999; background: #272727; overflow: hidden; position: relative; z-index: 3; display: none; } Lyndsey Edited February 18, 201313 yr by Lyndsey
February 18, 201313 yr Author Awesome, thanks Lyndsey! I knew that it would be something simple which I had missed! Also, if you click the top right "Log In | Register", a drop down appears. That too is out of proportion and looks to be as though it is a spacing issue?
February 18, 201313 yr If you're referring to the position of the content inside the panel, it's currently set up to a fixed width of 960px: #panel .content { width: 960px; margin: 0 auto; padding-top: 15px; text-align: left; font-size: 0.85em; } Reduce the width accordingly to account for the increase in font size.
February 18, 201313 yr Author Thanks Lyndsey, I sussed it out, it was a mixture of the H1 font size and the height of the drop down. (Plus CloudFlare wasnt dropping its cache so my changes werent taking affect!!) Thanks again for your help
Create an account or sign in to comment