Solved

override overflow:hidden on css

Posted on 2013-06-04
13
400 Views
Last Modified: 2013-06-07
i want a specific div to not have overflow:hidden, is there anyway i can override the below to get that done

div, a, p, img, blockquote, form, fieldset, textarea, input, label, iframe, code, pre { display: block; overflow:hidden; position:relative; }
0
Comment
Question by:mugsinc
  • 5
  • 3
  • 2
  • +3
13 Comments
 
LVL 9

Accepted Solution

by:
Ishaan Rawat earned 500 total points
ID: 39218485
just add---

overflow: auto !important;

Open in new window


to the element or tag or class you want to override the styles for....

like you want to override the style of div then...

div{ overflow: auto !important;}

Open in new window

0
 
LVL 1

Author Comment

by:mugsinc
ID: 39218493
tried that, did not work. i am working with HTML5
0
 
LVL 8

Expert Comment

by:PagodNaUtak
ID: 39218503
Hi mugsinc,

What value of overflow you want to replace overflow:hidden with?

As suggested above, you only need to add !important in the css.

div{ overflow: newValueForOverflow !important;}
0
 
LVL 1

Author Comment

by:mugsinc
ID: 39218507
there is a child div which i want the

#childdiv{
"overflow:visible"
}

 to be added. but it does not work
0
 
LVL 9

Expert Comment

by:Ishaan Rawat
ID: 39218508
Try this...

overflow: visible !important;

Open in new window

0
 
LVL 1

Author Comment

by:mugsinc
ID: 39218509
tried it, didnt not work
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 9

Expert Comment

by:Ishaan Rawat
ID: 39218513
First try this and then tell..

#childdiv{
    overflow: visible !important;
}

Open in new window


You have not added the !important ...
0
 
LVL 1

Author Comment

by:mugsinc
ID: 39218527
tried that too, didnt not work.

also tried

div #childdiv{
    overflow: visible !important;
}
0
 
LVL 52

Expert Comment

by:Julian Hansen
ID: 39218660
Poor IshaanRawat is trying to solve this with a blind fold on

Post your code or a link - you are wasting time with "that did not work".
0
 
LVL 1

Author Comment

by:mugsinc
ID: 39218723
#childdiv div{
    overflow: visible !important;
}

This worked
0
 
LVL 52

Expert Comment

by:Julian Hansen
ID: 39218798
This implies the div you want to style is a child of #childdive - an important fact that was ommitted from your question.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39219219
This whole thin could have been solved in 30 seconds if you had posted a link instead of playing games.  From your profile I see you have a number of B and C grades.  You might get better results if you learn how to use help sites.

Cd&
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39219221
In addition to adding !important, make sure this bit of css is on the bottom of the last style sheet or under all the style sheets add
<style>
div, a, p, img, blockquote, form, fieldset, textarea, input, label, iframe, code, pre { display: block; overflow:hidden; position:relative!important; }
</style>

Open in new window

The last style has presidence
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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Find out what you should include to make the best professional email signature for your organization.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

930 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

9 Experts available now in Live!

Get 1:1 Help Now