css

Niceforms radio buttons are shown on wrong position

When i am using Niceforms the normal text inputs and buttons work great and i even managed to get a custom theme for them based on the provided sample psd. But when i use radiobuttons/checkboxes, they get shown some where completely different than the labels. This happens consistently on FF,Chrome and Safari. As soon as i put any posit...

table class in php

Is it possible to put a table class in php, like this: echo "<table class='xd' border='1'> <tr> <th>IDNO</th> <th>ADDRESS</th> <th>LASTNAME</th> <th>FIRSTNAME</th> </tr>"; I have a table inside a table. The outside table is html. And if I only put table in the css. It will affect both. But when I put class in the table with php scri...

CSS: Namespace a piece of HTML

I'm building a browser extension that will insert a chunk of HTML into some pages. I'd like the page's CSS to not apply to this section. What is the best way to do this? Is there a good reset I can put on the root element of my HTML and set it to !important so it gets applied after others? ...

Why the positions of the elements change on the page after a postback?

Did you have such an experience: I have an asp.net page with couple of div elements on my page. Some of them are floating left and some are separated with <br /> elements. When I put a button which just post-backs and click that, I see that some divs (which were floated to left before) are repositioned to a new line. Any idea about po...

How to add another style property to this onClick?

Hi, I made this onlick property for my checkbox, my js-fu is like, not there, how can I simply add a border color property as well as bg color? <div id="akseptwrap"> <span style="left:-20px; position:relative; top:3px;"><img src="http://euroworker.no/public/upload/1_2_arrow.gif"&gt;&lt;/span&gt; <span id="salgsaksept"> ...

Visualforce dataTable: is there a way to stop it from rendering cellpadding attribute?

In Visualforce, I'm using an <apex:dataTable> component as follows: <apex:dataTable value="{!Qualifications}" var="qual" styleClass="cv_table" > <!-- etc... --> ... and then I'm using CSS to style the table, via the class name. Trouble is, VisualForce renders HTML like this: <table class="cv_table" id="j_id0:j_id26" border="0" c...

Why are web developers so keen to use lists ?

I've been developing for a while and often develop sites using menu tabs. And I can't figure out why so many web developers like using lists < ul >< li > etc rather than just using plain old divs. I can make menus in divs which are simple and work perfectly in every browser. With lists, I'm usually trying to hack it one way or anoth...

My form radio buttons don't work..

Some simple HTMl, I've added spans for styling, should I be using labels instead? It's meant to only allow one selected at a time. What am I doing wrong? I am codeblind :P JSfiddle here. Thanks. ...

Annoying IE7 problem.

I am styling a Wordpress theme but has run into problem with IE7. The first word("it") inside the paragraph/strong tag ends up to the left of the img tag when I want it BELOW the image. My problem is that the only element I can change CSS properties here is the div, since the code inside is posted with a WYSIWYG by an blog author. Is ...

"mobile"-blogging - any ideas/existing solutions?

hi does anyone know any sort of app that lets users visit a page on their mobile phone, enter information and have it update the website i believe the term is "mobile-blogging" but there isn't all that much on google or, is there any good resources for coding pages specifically for a mobile phone? I could probably design a script to i...

Indent text left and right

I am using the p tag to align text left and right on the same line using: .left { float: left; text-indent: 5px; margin-top: 0px; } .right { float: right; text-indent: 5px; margin-top: 0px; } <div id="content"> <p class="left">Left Text </p> <p class="right">Right Text </p> </div> The left text wil...

div "top" bug IE and everything else. Big problem

Hi everyone. I am new in CSS so please help me in this problem. I hope to describe it wright. I am making div named content where my site content is. I made it with z-index:-1; so an image to be over this div. But in Chrome, FF and safari, content became inactive. I cant select text , click on link and write in the forms. So I tried wit...

CSS body Background Centered to be aligned with content

I want to put a Background image centered in the body (backgroundPosition). And then I want all the content(text, tables....) I will add to the page to be aligned with the background, for example, If I zoom the Page, the proportions Background-Content should be respected. I tried almost everything and I don't know if Its possible, I k...

Define an <img>'s src attribute in CSS

I need to define an <img>'s src attribute in CSS. Is there a way to specify this attribute? ...

slide div from bottom to top using javascript

Hi All, I have a login button at the footer of my main page or landing page.Currently when user click on the button a login form will get open from TOP to BOTTOM i.e. from the start of form to the "LOGIN" button.What i want is that when i click on the login button it should open the form using slide effect but from the BUTTON to the TOP...

css menu list with nested lists

I'm trying to recreate this type (example 1, example 2) of menu list style, but I need it to be able to handle nested lists and I'm not sure how to do it. does anyone have any insight how I can do this? ie (w/ minimal markup) : <ul> <li>one</li> <li>two <ul> <li>two and half</li> </ul> </li> </ul> Thanks a bunch...

Easy way to apply Joomla template styling to my own content

I have an application that is mainly a bunch of PHP files included in a Joomla! application by Jumi. I want to make the site look nicer, but I'd rather not reinvent the wheel. There is a RocketTheme template installed on the site, and I'd like to be able to leverage it or some of the other CSS used alongside it. Specifically, I want t...

CSS Hide Youtube Video not working in IE

I have a youtube video like so... <object id="video_1" class="a_video ....... However the css for a_video: display:none; Isn't hiding it in IE. Anyone know how to hide embedded youtube videos in IE? ...

Many DIVs inside parent DIV, CSS height issue

Hi everyone, I am putting together a dynamic photo gallery and getting stuck trying to place thumbnails. Basically I am trying to place each thumbnail and caption in its own DIV, floated to the left. The thumbnails are working just as I want them to but for some reason the parent DIV refuses to cover the height of the thumbnail area. He...

Cross Browser positioning issue with Chrome and Firefox

I was hoping someone could help me figure out what to do about a browser inconsistency issue between Safari/Chrome and Firefox. Here's a screenshot (the one on the left is chrome/right is Firefox): http://drp.ly/QVv2T Here's the structure: http://drp.ly/QW47y The css: inside-wrapper { position:relative; min-height:320px; ...