css

CSS table - Expand input box the entire length without wrapping to new line

I have a form with elements structured as so: <div> <label>Name</label> <input type="text" name="name" /> </div> <div> <label>Address</label> <input type="text" name="address" /> </div> The way I want it to look is, the label is positioned next to the input box and the input box expands to fit the entire container. If I s...

A better way (or alternative) to calculate Pixel and % in CSS?

I'm not saying that I'm lazy to do math, but is there a better way to perform this task: I have a page that with width: 960px, inside it has 2 divs that are width: 50%. That's quite simple, but if I want to add 1px border I have to calculate 960/0.5 minus the extra pixels of the borders, they should be 4px but strangely they are counted ...

How do I indent an unordered list properly? margin-left won't work!

Hi I'm creating an email but I'm not sure how to adjust the automated indent on the bullets. I'm sure theres a simple fix. Margin-left doesn't seem to work! Thanks for your help Regards Judi .bullets{ width:255px; color:white; font-size:11px; margin-right: 2em; list-style: none; li...

CSS is not added in CakePHP

I had kept one application developed in CakePHP in my machine. I am able to view the application by http://localhost/webq but the CSS is not added. What could be the reason? ...

How to check if user is in high contrast mode via JavaScript or CSS

Hi, when pressing Shift+Left+Alt+Print Windows switchs into high contrast mode - is there any chance to detect that on a webpage (using JavaScript or CSS)? Is there any chance to detect that in the HTTP-Request (a.k.a the server-side e.g. via PHP or Ruby)? Cheers ...

z-index issue in IE7

hi there we have a z-index problem with a div that's supposed to be over a particular div. the div named (house-over-banner) is absolute, whilst the one below it is relative. In Firefox, IE6, 8 - it shows all good! Just in IE7, it doesn't! the link is www.showhome3d.com.au. - it's the house over the baner on the right hand side of the ...

Why won't IE css fix work for internet explorer8? ie statement end if

Hi I've applied an ie fix for my site but it doesn't work for ie8. Do I have to be more specific? <!--[if IE]> <link rel="stylesheet" type="text/css" href="/AEBP_Homepage_12887/css/ie.css" /> <![endif]--> Thanks for your help Regards Judi ...

how to strech select ?

Hi all, I have a problem with my select .. Default value is "please choose" .. but there are some options like "Acommodation & Hotels" .. so its bigger than the default value .. so its not clearly seen on IEs, it works ok in FF, how can I do this? with css or javascript? what is the best solution ? thank you NOTE : I want to strech the ...

Curved Menu Tabs

I am trying to make rounded corners on a tabbed dynamic menu using Drupal ad the dynamic-peristent-menu module, (hence the dynamic-persistant style definitions in the code below) You can see the code and the menu is 99% right here: http://vpscentre.co.uk/sandbox/ Can anyone make my solution 100% correct and make it so the navi_top_right...

Is it possible to change the style of the "Browse" button in the file upload html control?

I've been looking all over Google for an easy, clean way to change the style of the Browse button of the HTML <input type=file> control, but all solutions I've found so far involve hidden controls, absolute positioning of images, jQuery plugins etc. Is there a way to accomplish this using CSS2 that I've missed? ...

Div in lower left corner of wrapper div

Hello! I have a page with a wrapper div which contains a background image and all the content divs. In this wrapper div I also have a logo div which should be placed at the bottom left corner of the wrapper without interfering with the contents. I have managed to place the logo in the bottom left corner of the whole page (position: abs...

a vs a:link, What is the difference?

What is the differences between a {...} and a:link{...} ? what are different usage of both ? How we can take benefit of both tag? ...

ASP.NET/GridView: HeaderStyle-CssClass has no effect

I have the following GridView in ASP.NET 3.5: <asp:GridView ID="gvTable" runat="server" AllowSorting="true" ShowHeader="true"> <Columns> <asp:BoundField DataField="ActivityDate" HeaderText="Date" HeaderStyle-CssClass="date" /> <asp:BoundField DataField="ActivityType" HeaderText="Type" /> <asp:BoundField DataField="Ac...

Allow anonymous access to a special file in Asp.Net

I started using dotless css in my asp.net site which requires a special httphandler to work. The site uses Forms Authentication. Here's the problem: When I'm logged in the request to http://mysite.com/stylesheets/mystyles.less works fine. It gives me back the appropriate css. If I'm not logged in the request is denied and I'm redirected ...

Best way to add metadata to HTML elements

I'm trying to put together a way of marking up various components in HTML that get parsed by a jQuery script and created when the page loads. For example, at the moment I can put the following in to my page.. <a href="link.html" class="Theme-Button Theme-Button-Style-win2007 Theme-Button-iconLeft Theme-Button-AlignmentCenter Theme-Butt...

help creating equal height columns on website with CSS

I have a website I'm working on that I should have perfected the layout on FIRST. But I am now faced with the issue of the columns not going all the way to the bottom. I have read the tutorials on how to get the 3 column layout in CSS from another person http://www.ejeliot.com/blog/61 The problem is I’m still lost. Can anyone look at t...

Link in one div, trying to load content in a seperate div

Hello, I am using jQuery to make a website, and I want to be able to have my navigation in a separate div from my content. Also, I want to be able to have a sort of tabbed navigation system such that I can click a link in the navigation and it will load the content into the main content div. Basically, I want to do this so that I can jus...

@font-face in IE with modal window: once in the modal font reverts back to Helvetica

I'm using @font-face and it's working perfectly even in IE when loading the index page. However, when I open my modal window using IE it still works and then I click on a link within the modal to display a new page in the modal - it reverts to Helvetica on that page, on the previous page and even when I close the modal my index is now in...

CSS, inline list with multiple lines

I have a header set up like this: <div id="header"> <div class="container_16"> <div class="grid_4"><img src="content/images/logo-beta.png" /></div> <div class="grid_5 push_1"> <ul id="navigation"> <li><a class="header-link" href="#">About</a><span class="sub-navigation"><a class="sub-link" href="#">Info</a...

Testing tool for browser/resolution issues

I just looked at my site (http://softserv.ca) on a laptop and the background images used along the top and top-right looked horrible -- very grainy and striated. It was IE8 on XP. I couldn't check the screen resolution, but it didn't look like anything out of the ordinary. I'd like to know what typically causes such striation, and als...