I currently have this http://jsfiddle.net/dgAEY/ which works perfectly, I just need to figure out a way to size the font when it gets too long. I’ve looked into Auto-size dynamic text to fill fixed size container and I’ve tried to apply the Jquery function they posted but I couldn’t get it t…
Tag: css
Twitter’s typeahead.js suggestions are not styled (have no border, transparent background, etc.)
I’m using twitter’s typeahead.js 0.9.3 and it seems my suggestions are not styled at all. I’m getting this: Instead of something like this: (taken from examples page) JavaScript enabling typeahead: HTML input element: Additional Notes: The site I’m working on has jQuery 1.10.1 and does…
Add Active Navigation Class Based on URL
I’m trying to add an active class (i.e. class=”active”) to the appropriate menu list item based upon the page it is on once the page loads. Below is my menu as it stands right now. I’ve tried every snippet of code I could find in this regard and nothing works. So, can someone please ex…
Getting or changing CSS class property with Javascript using DOM style
My objective is to change the background color of a columns in a table without addressing each data entry individually by Id or Name. I know there are several ways to do this, and I’ve tried 3 to be exact, and I’m having problems with each. For the sake of simplicity and clarity, In this question,…
Viewport argument value “device-width;” for key “width” is invalid, and has been ignored. Note that
I am getting this error in JavaScript: Viewport argument value “device-width;” for key “width” is invalid, and has been ignored. Note that ‘;’ is not a separator in viewport values. The list should be comma-separated. How do I fix this? Answer I had this same error. Oddly, …
Adding an image within a circle object in d3 javascript?
My goal is to add an image into an existing circle with d3. The circle will render and is interactive with mouseover method, but only when I use “fill”, “color”, and not something more sophisticated like .append(“image”). The image doesn’t show after I mouse over. Usi…
Open a new javascript window(.open) along with its CSS styling
I’m trying to get this function to work on the website of a project I’m working on. The purpose of this function is to only (physically) print the contents of a child div which is coincidentally referred to as selector #content. Here’s the little bit I’ve got ’till now: The funct…
FullCalendar.js adjust header for mobile
I am using responsive styling in a project that uses the fullcalendar.js. Unfortunately, I can’t get the style of the header (fc-header-left, fc-header-center, fc-header-right) to stack on each other when in mobile view. For example… in desktop view it looks like… fc-header-left fc-header-ce…
Toggle visibility property of div
I have an HTML 5 video in a div. I then have a custom play button – that works fine. And I have the video’s visibility set to hidden on load and visible when the play button is clicked, how do I return it to hidden when the play button is clicked again? I’m basically just trying to toggle it
How can i scroll the page with img tag [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you’ve tried to do, why it didn’t work, and how it should work. See also: Stack Overflow question check…