css

How do I center (vertically and horizontally) buttons in a div tag?

I am trying to determine how to center (vertically and horizontally) buttons in a div tag. Given the following CSS: div.listBoxMoverUserControl { width: 350px; height: 175px; } div.listBoxMoverUserControl div { height: 150px; } div.listBoxMoverUserControl div select { width: 150px; height: 150px; } div.listBoxMo...

using last-child in css

the below css doesnt works on below given html. The purpose is to apply the css on the last 'li', but it doesnt. #refundReasonMenu #nav li:last-child { border-bottom: 1px solid #b5b5b5; } and html looks like <div id="refundReasonMenu"> <ul id="nav"> <li><a id="abc" href="#">abcde</a></li> <li><a id="def" href="#">xyz</a>...

The weirdest css issue I have ever seen

Below I have 2 css codes for a div, please note that the first one does not even have a div on the page or ANYTHING with it's name on it. I can also rename it to anything. Now where the weird part comes in. The second bit of code below has a width of 520px, the only way that the div on the page will be 520px is if I leave the css code...

How can I restyle a submit button?

In one of the page of my ASP.NET MVC application, I have a list of messages that is shown to user. Something like this: Pressing the close button marks the message as read on server so that it is not displayed again. This close button is internally a "submit" type input since I understand that any server side changes must be triggered...

Are tables replaced by DIVs?

Possible Duplicate: Why not use tables for layout in HTML? I know everyone is all about DIV's and css and against tables now days, I have always used tables because they are so easy for me to visually see what I am doing while building, I am just now ventruing into the DIV world. So my question are tables completely replaced by...

How to position the split line caused by background repeat.

I would like to have a repeat-x on my body background for a web site, but the background is 1024 wide, so on wider displays, the line where the image begins again will be positioned to the right of the body, and possibly visible. My content is in a div 800 wide centred on the body. I would like the 'split' like from the repeating backg...

How to move headings aside each other?

<h5>Category</h5><h6>auto</h6> and result: Category auto how do that: Category auto Sorry if my English is not perfect, I'm not a native. Thank you for your help. ...

Automatic multi-page multi-column flowing text with QtWebkit (HTML/CSS/JS -> PDF)

I have some HTML documents that are converted to PDF, using software that renders using QtWebkit (not sure which version). Currently, the documents have specific tags to split into columns and pages - so whenever the wording changes, it is a manual time-consuming process to move these tags so that the columns and pages fit. Can anyone ...

How to do opacity for Text?

I have a div tag contain text: <div id="XXX" class="xxx"> fffsdssfdf </div> And the CSS like this: .xxx{ opacity :50; } But the Text doesn't opacity. ...

What does "semantically correct" mean?

I have seen it a lot in css talk. What does semantically correct mean? ...

When creating CSS sticky footers, why use min-height and not just height?

I'm reading about making footers stay at the bottom of the browser with CSS, and every time I read about making the and 100% height, and then make the / div or whatever you want to call it have min-height 100%. That way, if the content doesn't take up enough room, the does not collapse, bringing your footer up with it. My question is why...

few styling problems

I have two problems with my friendlisting box. 1. Images are set 100px in width but they vary in height. Problem here is, friendlisting div is not extending along with image's height as it should. As a result image overpositioned on bottom border. 2. Commonfriends div needs to extend in height and fully fill friendlisting box. Not happ...

CSS Container DIv Height. Floating DIV questions.

Can you force a container DIV height to accomodate two floated div children? Is there a fancy trick I can use to do that? I am trying to make two equally sized divs inside the parent div. I would like them to appear side by side with a little whitespace between them. Child2 tends to pop out and go below Child1. Note Child2 contains a tab...

min-width and max-width with jQuery

How to emulate for ie6? ...

Jquery count number of hidden elements within div

How can I count the number of items in div that are hidden? Thanks in advance ...

How can I make 2 DIV's align vertically in a list item in CSS?

I am working on a comment system and design is my weak area, So far though I am getting very close to the look I am going for, my code is below. There is my CSS code and my div's that make up the comment section, I have stripped out all the fancy stuff as I am just having n alignment issue and it is present in the below code. For the c...

3 columns to align correctly with divs.

Hows it going. Im just started to learn a bit about joomla and Im trying to get my divs to align vertically when making a template. The problem is that the right div is way down the bottom of the page on the right hand side and the center div is aligned at least 1 character height below the left div which is the only one correctly align...

Dynamically hiding table rows with jQuery

I am trying to alternate background colors of table rows, each section starting with the same color. I have achieved this with the following code: $(document).ready(function(){ $("tbody tr.row:nth-child(even)").css("background", "#efefef"); }); I also need to be able to limit the number of rows (5 for example) that are visible inside ...

How can I position this DIV among other DIV's in CSS?

I am having trouble aligning some DIV's on a comment system. Below is my current CSS code and the html along with a photo to show the problem. In the photo the delete part on the right side of the first comment is positioned at the bottom of the comment and I need this div to be at the top. Also if you look in the second comment you w...

Why is some text size in the brower appear bigger while veiwing on a moblie device?

I just made a site for a bbq site and when you view the old75.com/home/contact/ page on a iphone, you will see that the content appears normal as the footer is in a more larger font. But the font size of the footer is the same as the content. Can anyone see why this could be? I have this problem on some other sites as well. ...