Solved

Wordpress Template CSS max/min-height issue

Posted on 2013-11-30
7
321 Views
Last Modified: 2013-12-19
Hi, I'm working on celebratebirth.comcelebratebirth.com and the header is behaving erratically. When I use the inspector in chrome to view the code it shows this line for the top nav bar:

<section class="topBar normal-menu" id="top" style="min-height: 124px;">

Open in new window


yet when I look at it with view > Source i get this:
<section class="topBar normal-menu" id="top">

Open in new window

without the min-height. I'm trying to kill that min-height so that the bar will be shorter but I can't track it down. Went in to wordpress's custom css field and entered
.topBar .normal-menu #top {min-height: 74px !important; height: 104px !important;}

Open in new window


I'm still getting the same thing when I inspect the element with Chrome:
element.style {
min-height: 124px;
}

Open in new window


...in regard to that same line of code mentioned first above.

Any ideas how I can fix this please?
0
Comment
Question by:khellar
  • 4
  • 2
7 Comments
 
LVL 15

Expert Comment

by:Insoftservice
ID: 39686549
You mean to say you want to change min-height:124px please confirm.
please try to remove id='top' and check
0
 
LVL 1

Author Comment

by:khellar
ID: 39686784
I want to change min-height to something lower like 74. I've removed id="top" and it appears that nothing is different.
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 39686806
Its coming via js if its nt present in your page.
Its hard to catch from where its getting added .
But even if you remove it . It would not be affect the height as minimum is 117px.
if you don't mind you could provide code details and if its not voiding EE rules
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39687003
The header minheight is being overridden from the scripting and to fix it you are going to have to go through the excessive scripting to find where the style is being written.  As the style is almost certainly being put inline you cannot override with conventional CSS in a stylesheet.

You might try setting it with the important hack with min-height:74px !important; and if you are lucky then it will override and you will not have to dig through the scripting.  C

Just a caution that themes are frequently a house of cards and a minor change that the author did not anticipate may collapse the whole effect.

Cd&
0
 
LVL 1

Author Comment

by:khellar
ID: 39688870
I'm not sure how I would find the excessive scripting related to this so I'm going to contact the developer and post his suggestion here once I have it. Thanks to you both.
0
 
LVL 1

Accepted Solution

by:
khellar earned 0 total points
ID: 39718624
This is the solution that was needed for the 907 wordpress template. Thank you all for your help!

/*Set Height*/
.topBar {
min-height: 60px;
}

.is-sticky{
height:60px;
}

/*Moves Menu adjust as needed*/
nav.mainMenu{
margin-top:20px;
}

/*Moves Logo adjust as needed*/
.topBar h1{
margin-top:15px;
}

Open in new window

0
 
LVL 1

Author Closing Comment

by:khellar
ID: 39728754
This is the correct solution.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now