css

DIV containing a SWF

Hello, I have a tag to include add a SWF but I would like around it to control it's size. I have something like the following: <div style="left: 852px; top: 596px; width: 30px; height: 20px;"> <embed align="middle" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" allowscriptaccess="always...

Adding a scrollbar to a firefox extension's sidebar

I'm trying to add a scrollbar to a firefox extension so that it displays when the window is too small. I'm having issues with having the scrollbar span the entire range from top to bottom of the sidebar and only having it displayed when the window is too small. One extension that has the functionality I would like is the sage extension...

Using jquery to execute border:none and background-color:white on empty cells

Hi guys . So I have this (huge) table , classed with css (big_conv_tbl) . All "empty" cells have a &nbsp inside them , I'm also using an odd/even css script to make the table easier to read (and thus some "empty" cells have a gray background color) . What I want is to remove the borders and the background-color (set it to white) if the...

Detecting IE6 using Javascript/jQuery revisited

I need to detect IE6 in order to work around the lack of position:fixed. I've been using a simple regex: var isIE6 = /msie|MSIE 6/.test(navigator.userAgent); This works almost all the time, except for the user whose browser claims to be both IE6 and IE7: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE...

What HTML tag is most appropriate for display in a Grid or Table? (with specific needs)

I'm trying to build a CSS-based table that will be populated with information coming from a database. What is the most appropriate tag to use for this structured data? I originally considered ul since each row is an unordered list of data... but then I uncovered some difficulties making it into a grid using CSS. I'm now looking at DIV...

Handling image-heavy web pages

I have a list of TV shows which is about 200 shows long. Each of these shows has a little image, 40x60 pixels and 3 kB, and they are all listed on the same page at the same time. Now I'm starting to think that maybe it's not such a great idea to have about 200 requests to the server each time the page is being viewed. What is the best ...

Why is my subnav so jumpy? (links disappear before I can click them)

http://kenbrook.org You'll see the main nav has a subnav with elements floated left (I think*), but when you hover over a main nav item, then try to get to the sub-nav items, they disappear before you can click them! I can't quite figure out why this is. *I designed the site, and another developer built it, but left to project early s...

Prevent or clear HTML/CSS tags.

I'm developing a website using PHP, MySQL and HTML. In the database, one of the fields is a text that may contain HTML tags such as <b> or <i>, for example. My problem is that in a specific part of the website (a search section), I wanna display only a 'summary'/substring of this field. The problem is: when I get a part of this field t...

Lucida Grande renders differently on Chrome and FF

Screenshot: http://imm.io/Wwr or http://gasa.jaeh.net It is pretty evident that my site renders different on Chrome5 and FF3 on my Ubuntu. Does anybody can point me how can I even these diffs? I don't want fonts with different 'feelings' on each browser. Another point is, the elements seems smaller on chrome, the font size mainly. Any...

change color on hover

Hi! I have buttons and they change colors when they are hovered. But I am trying to make a button remain with a changed color after being hovered until another button is hovered. I read a post and it said to use a:focus but this is an implementation that works only when clicking a button, not with mouseover thing. Any help appreciated....

Is there any "code corrector" for Vim which highlights HTML, PHP, CSS mistakes??

Sometimes when I make coding mistakes I spend a lot of time finding the error. Is there a plugin which makes Vim underline or highlight PHP, HTML or CSS mistakes? For instance: <?php foreach ($row as $r) { <echo '<h1>' . $r->title . '</h1>'; } ?> The '<' before echo will be highlighted in red. Vim has HTML correction but I n...

center loading overlay div

I have the following structure, the #tabs div is a static positioned div. I would like to show the loading inner div during an ajax request and have it centered on the #tabs div (which is actually a jquery tab). But it's not getting centered with the css I have at the moment. <div class="span-18 last" id="top_tab_container"> <div id=...

How do the the "Pros" design and code web sites?

How do most modern "pro" web designers go about starting/designing/coding a site? I realize that techniques will range and differ drastically, I'm just looking for some solid, relied-on tactics or approaches. For example, "I know most draw out a rough design with the client, then go into photoshop and create it, then slice it up, then ...

How to switch themes in web browser

I want to change the theme in an asp.net website. but i have to give the normal effect of switching themes? ...

calender highlight

i want to create functionality in which to-do list will be on left side and one calender will be on right side.what ever due date i select in to-do list,it should be highlighted in calender,how can i do that? ...

Do CSS files get sent to browser?

Do CSS files get sent to brower for the browser to render the page, or are CSS files processed server side, with only the HTML page being sent to browser? ...

Output CSS only if DIV contains content

Hi, I have two gallery buttons, a next and previous, each of which is wrapped in a DIV tag, and want to apply a background image to each. However in some galleries at times the next button may not be output if we've reached the end of the available gallery images. Currently my background image would still appear, even though there is n...

How to calculate the offset() of an <li> relative to its parent container

I have a <li> which is nested inside a containing <ul>, what I would like is to calculate the offset. But have the top-left corner of the <ul> be 0, 0. So my HTML is: <div style="margin: 0 auto; width: 760px; height: 760px; overflow: hidden;"> <ul style="width: 2000px; height: 2000px; min-height: 2000px; position: relative;"> ...

Css Class and ID Style

In my case i have an styled alert which displays both success and error cases. By default the alert will have the id style as common alert (neither success nor failure). So depending upon the validation with js i need to change the alert to use the style success class or failure class without letting that alert to use the style defined w...

How not to load all images on a page on load

I have a page with a list of jpg images on the page. The div that contains images is hidden and works as images source for Galleria jQuery image gallery plugin. So, when I load a page, it takes long to load it because it loads all images. Is there a way not to load all these images on page load, but just when galleria needs them? ...