css

How do i get these things horizontal instead of vertical?

http://we-live.in/city.html -- id like to see RESOURCES and EVENTS side by side bc im listing 3 more... rather than on top of one another -- can i do that within the div or do i have to redesign the layout? <div id="row1"> <div class="wrapper"> <h2><script type="text/javascript"> <!-- document.write('<form name="selecter1"><...

Getting a color from the CSS class using prototype

Lets say I have a couple of CSS classes: .tickup { color: green; } .tickdn { color: red; } .tick { color: black; } Then I have JavaScript (which is using Prototype) that needs to dynamically change color of another element. That's easy - $('element').style.color = 'red'. But the thing is that the page is skinned, so my only way is to ...

Any reason why I am getting extra spacing underneath.. IE6-7?

Any reason why I am getting extra spacing underneath each input on my contact form? It only happens in ie6 and ie7 http://nhbs.bythepixel.com/contact.html ...

PHP: Read text file into div, then add positioned form fields

I have multiple text files, which are simple reports, that must be reviewed and validated by users. I would like to pull the report into an html div element then add form fields at absolutely positioned locations. For example, the report may have monthly sales by sales rep: Jan Feb Mar 13 9 11 I want the user to see t...

How to use CssStyleCollection for a UserControl?

Hello, I am wanting to do custom rendering of the CSS styling, as such I created a new UserControl. From there, I thought it'd be easy just create a new CssStyleCollection under the name Style. It does not work though! How do I make this code compile? (just an example) class MyControl : UserControl{ CssStyleCollection Style=new CssSt...

SIFR 3.0 - Font Size

I have been working with SIFR 3.0 for some time now and the font-size never seems to work correctly. I understand the most basic concepts behind SIFR. SIFR runs when you load the page. It does some calculations one the size of the HTML rendered font and then replaces it with a flash movie that is roughly equal to that size. Because of...

Increase size of checkbox in asp.net ?

I really tried a lot to increase a size of checkbox in asp.net. using css style sheet but it doesn't work. Might be I have done something wrong. I am try to increase the width, size and height of checkbox, but it doesnt happen yet. Can anyone provide C# code or css code that can do this? ...

What is the best way to use a radio button in an iPhone web app?

I'm creating a web application that is optimized for the iPhone (but also should work on all mobile devices). I have a form field that includes one standard text input and then need a radio button group with two options (Inbound/Outbound). The radio button makes the most sense logically since one option should be selected by default and ...

@font-face nested within @media does not work in Firefox 3.5 and IE8

Update: Looks like I got caught up in a correlation that was not in fact the cause of the problem. Problem was actually an unrelated issue in how CSS files were deployed. See my answer below for details. I have @font-face working well in WebKit (Safari and Chrome) and Opera, but not in Firefox 3.5 or IE 8. Per recommendations by Google...

UIWebView and local css file

I want to style a web page meant for the desktop so that it is presentable on a UIWebView on iPhone. I do not have access to the web server from which the pages originate. I would like to do this by changing the href attribute of the <link> stylesheet element programmatically. I do the following with my IBOutlet UIWebView *webView. NSS...

How Can I Remove a Surrounding DIV with jQuery?

In Wikispaces, when you add a Table of Contents to the Main Content area, any heading (h1-h6) you use within that main content area is automatically placed within the table of contents, and serves as an anchor link that when clicked on, takes you down the page to the heading referenced from the table of contents. By default, wikispaces ...

Appending text to the end of class names to make it obvious jQuery is utilizing those classes

Hello everyone, While developing a design using jQuery I stumbled across a problem. How would I know, without having to look through the javascript, if jQuery isn't doing a selector on a class in my HTML? That is to say, if I wanted to change the class to something else, I have no way of knowing if that class is being used elsewhere s...

CSS: truncating a row of images to the same height

I have a bunch of image thumbnails I'm displaying in a web page. All of the images are 256 pixels wide, and I'm shrinking them 50% with <img width="128px" ...> Most images have a 4x3 ratio, so they grid quite nicely over several rows. However, some images are very tall (e.g. 256x1200). I would like to specify a maximum height for the...

How do I get an HTML Text Area with monospaced text using CSS?

This may be a dumb noob question, but I can't figure out how to make my text area use a monospaced font. ...

Dynamic Font Scaling CSS

I love using the MS fonts for Vista, they're great. However they're several points smaller than the common failsafe fonts, meaning a website optimized for the Vista fonts won't look nice for people with older fonts. The problem is described in this old article: http://neosmart.net/blog/2006/css-vistas-new-fonts/ It's been 3 years sinc...

detecting a click on an image inserted through CSS content url()?

Hi everyone, I am adding a "remove me" icon to all elements on my page with class "myClass": div myClass:after { content: url('remove-me-icon.jpg') } Then I am using event delegation to detect clicks on all these icons by listening for clicks on the containing element: $("#myDivThatContainsThoseOtherDivs").click(function(e){ if (...

An inconsistency problem between browsers, puzzle me long time

First, the screenshots As you see, although i explicitly described the height, padding-top, etc, there's always a little differece between browsers, how can i make them the same? This problem keep puzzling me and i never find the cause, i even tried delete reset.css i use but still no luck Paste related DOM and CSS for reference DOM...

Is there any browser based XHTML editor which we can use to make text to xhtml conversion?

Is there any browser based XHTML editor which we can use to make text to xhtml conversion? If PC dosen't have any IDE or tool other than Notepad and we can't install anything on PC due to restrictions. Then what is fast and good way to make .txt or word 2007 document to clean valid xhtml code? ...

Setting -webkit-gradient backgrounds via jQuery doesn't work

Defining gradients in CSS works fine, but when I try to do this with jQuery, nothing changes. Typing $('#header').css({background: '-webkit-gradient(linear, 0% 0%, 100% 100%, from(#cfc), to(#afa)'}); in Chrome's (4.0.249.43, Linux) JS console (in page's script tag too) really does nothing (but returns jQuery object, so it's valid). Tr...

CSS working in IE but not FF/Chrome

I feel like this is a very basic CSS question: There seems to be a hidden "margin-top" in my CSS, which shows up in FF and Chrome, but not IE. This is the page: adambailin.com/projects I want the project title to line up with the image. Each project is in a #project div (thin white border-top). The css for the image is #project_i...