css

html2pdf is not recognizing space and not able to add margin.

I am having a html page with no style attribute.HTML tags i am using are "center,line break tag, bold tag".Html page doesnot contain any table. its a simple document.I need help for:- Adding margin of 1 inch on all sides of the pdf file. I want to start every para with space of two tabs. ("&nbsp" generate space in html file but not in ...

To divide the big text into columns.

Problem: There is a big piece of the text: <div class="cont"> <p> Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam volupt...

how to set cache for css/js file.

Hi all, I have to use the cache for the css files and js file which i used in the site. my site running in a shared hosting server. nothing can be done with server. so what could be the solution for use cache and compression for js and css files. ...

Why does my CSS tooltip push my other content down?

I have a CSS tooltip, with CSS3 fade in, with z-indexes set to 999. When I hover over the link, the tooltip itself pushes my other content down, it's meant to be above, not inline, although I've used a span and converted it to block.. Here is an example of what I'm going for, how can I stop it from pushing the content down? Thanks. ...

Ajust table column width to content size

Form (with firebug highlight hover the td): Label column CSS: width: auto; padding: 0; margin: 0; The problem: Why my left columns have that invisible "padding-right"? It's not possible to shrink columns to fit their content? --EDIT-- The problem was the table itself. I defined table with "width: 100%". Removed that and the prob...

CSS: Menu breaks on image for background website in IE/Opera

I'm inexperienced with CSS, and I'm having a problem with a breaking menu on a site I'm working on at www.quickcms.ie/marywrynne/index.html. It works fine in Safari/Chrome and Firefox, but it's not working in Internet Explorer. Can anyone suggest steps I can take to fix this? ...

How should grouping be combined properly with child and descendant selectors?

Child and descendant selectors have been leaking to every element on my html structure and I found out that this happens when I combine grouping with it. This affects all elements on the whole document: ul#topnav > li a, a:hover, a:focus{ font-size: 14px; color: #C2C5CC; text-decoration: none; padding:0px; } while this only affe...

How to change the strike-out / line-through thickness in CSS?

Hi, I'm using the "text-decoration:line-through" in CSS, but I can't seem to find any way to vary the line thickness without inelegant hacks like hr or image overlays. Is there any elegant way to specify the thickness of a line-through? Thanks! ...

What are some Best CSS Practices, Do you Re-use previous CSS? How about Frameworks?

Hi, I'm compiling Great Ideas how to optimize and improve your CSS. What are your best practices that you would like to share? Do you use frameworks? Do you re-use your CSS? Do you document your CSS? Please share. Thanks! Additional Question, How do you generated IDs and Class in naming your markups... are they generic or specific?...

overflow:auto when textarea has content by default?

Hey This is a problem, that has annoyed me for a long time. If I have a textarea with long text in it, overflow doesn't work, even if content goes over the visible area. How to fix this? Martti Laine ...

Positioning a Comment Input Field

Hello, What is a good way to give the input field below the three characteristics listed? Characteristics: -Always 30 px from the left side of the browser window. -Always 30 px below the words "Add a comment" if no comments have been added. -Always 30 px below the preceding comment if one or more comment(s) has (have) been added. T...

Trying to align a paragrap and heading

Hi, i have this page. login: fer password: m Note: after login you will be redirected to another page. Then click again the link i mention. As you can see the sentence "Editar mi perfil" is not aligned with the baseline of "Fernando Salgado...". I tried with vertical-align but it doesn't work.. Any help ? Regards Javi ...

When functionalities of html attributes and css styles overlap

1) If inside CSS file we specify the following style: td { text-align:center; } While in a Html file we have <td align=”right” … > then value set in CSS file will take precedence over an inline html attribute and thus elements contained inside <td> cell will be aligned to the center. a) Is same true for all html attributes? Mean...

CssClass and default images in ServerContol

I'm writing a ServerControl in ASP.NET 3.5, and I'm exposing CssClass, so the user can manipulate the visual appearance of the control. My problem is that I want to establish reasonable defaults, so that the user doesn't have to configure CSS unless he wants to change the defaults. My specific problem is that my control is emitting htm...

Why is my "Page [0]" not centered in my webpage?

My "Page [0]" text isn't centered on my webpage. Anyone know why? I could really use some help please. Here is the html: <html> <head> <title>Test Forum</title> <link href="http://prime.programming-designs.com/test_forum/style.css" rel="stylesheet" type="text/css" /> </head> <body> <a href="http...

I have a bunch of divs floated left, lined up in columns with different heights. They dont create a nice grid without setting a height.. JS or CSS way around it?

Hey guys, I am trying to create a grid like system with div's with content floated left. The problem is that the height of each div is not static since the content is different in each one. Since the height is different.. things get outta whack if one is taller then another in one row. Is there some sort of css way or js (prefer java...

Link on z-indexed div not a link?

I have a div behind the main div. Sometimes it appears and sometimes it's occluded, and that's fine. But the link on that z-indexed div isn't showing up as a link. Which is to say, the browser doesn't turn the cursor to a pointer; and when you click on it, it doesn't request the href document. Is there any way to keep the div so th...

Add color to selected <li> item / override <ul> style

I have navigation for which I need to set a color for the selected item. It's flat HTML and CSS. Here's the menu code: <ul id="top_navigation"> <li class="border_red"><a href="index.html">Home</a></li> <li class="border_red"><a href="about.html">About</a></li> <li class="border_red"><a href="services.html"><font color=...

css selector on IE

I'm using .class1.class2 .class3 selector, where .class1.class is a combination selector and .class3 belongs to a descendant. works fine in FF, but on IE7, it doesn't work. In the css below, the second style is always shown in IE. any solution? <STYLE type="text/css"> .test1.test2 .test3{ width:90px; height:100px; } .test4....

Opening new window in HTML for target="_blank"

<a href="facebook.com/sharer" target="_blank" >Share this</a> How do I make this a certain width and height, in a new window, when the user clicks on it? In firefox, the current code only opens up a new tab (not a new window) ...