css

How to display static text and dynamic text(generated by variables) differently in PHP?

A HTML file is generated by a PHP file. Generally speaking, what a user can see from a HTML file can be divided into two parts, one part is static; another part is dynamic, this part is represented by variables in the PHP file. For example: $html=<<<eod $title<br/> Total Price:$row[column1] Quota:$row[column2] <pre>$row[column3]</pre>...

CSS for pagination links

Hello, I am having problems with the CSS for the pagination page number links below. What CSS would make the links have the following properties below? Start at an absolute position of 940 px from the top of the screen and 100 px from the right. Be 10 px apart from each other. Thanks in advance, John /****** build the pagination...

Content scrolling past page footer

Hello, In my page layout, the footer is staying wher it is and the content is scrolling past the footer. Is there any way to keep the footer positioned at the bottom of the content ?. You can see how the page looks by visiting www.postcode53.com/layout. The HTML and CSS are as follows: HTML Housing Partners ...

CSS question - repeating for x for two different images in different directions

Hi there! I was playing around with an image on a site just for practice, and I was wondering if anyone could help me with a question. I am trying to get the branch the snake is on extend both directions. (using background-repeat for x) However it will only match up with one side or the other. Is there a way to get x to repeat only fo...

Simple html css block structure, can't use -headerHeight bottom-margin for content div to avoid scrollbar?

The following is my simple html/css structure: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <title>de titel</title> <style type="text/css"> * { color: #FFFFFF; margin: 0; padding: 0; } html, body { heigh...

Preventing a div and its content from being printed

I have a print page, and I want to put a div with some instructions on how to print the page in it. I don't want this section to appear when they actually print the page. How would I achieve this using CSS or JavaScript? ...

Inline CSS/Javascript into a HTML file

I am looking for a simple commandline script/program to automatically "inline" all external css and javascript references for a html file. I basically want to create a single self-contained html file suitable for sending via E-Mail. An additional bonus would be if it could also inline images as data: UIRs, but that part is not so importa...

Check/Verify if user-provided CSS is not evil

I would like to allow my webapp users to save custom CSS through a text field to modify the look of their GUI. I guess there are some evil CSS hacks out there. What should I take care about? ...

PHP GD Font Width Calculate Help

OK a little background story. I am redesigning one of my old websites and I want to use Myriad Pro for the title on the page. This will be dynamic with PHP, etc. At first I thought I should just use CSS styles and define Myriad as the main font. But after using typetester.org, I found that Myriad and let's say Arial are different height...

First line text-indent in sIFR

Hi, I have a text block made whith sIFR and I want to indent the first line. Look at this image to see what I want: http://alltutorials.hi2.ro/testimonial.jpg I want the word WOW to be after the big quotes. I searched the sIFR documention I used text-indent but it seems it doesn't work. Thank's for the help, Andrei Paste the l...

css file path is right, css codes are valid, but it doesn't work

I have a weird, annoying problem. I have a css/ folder and index.html at the root. I load css files in the header as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> ...

Converting drop-down select input to radio buttons which require one to be chosen

I'm using an e-commerce system which allows you to have several variations for each product - (for instance: large, medium, small t-shirts). However, we are having complaints from customers who add a t-shirt and ignore the variation. As a result, a lot of big people are getting small t-shirts (the default). To solve this, I'd like to for...

CSS WTF : form button not horizontally aligned (screwed up in FF but OK in Chrome)

OK here is what I found out, when I assign height to all my form elements, they will not be aligned horizontally, when they actually should. Chrome rendered this OK, FF pushed the form button too far up. Is there an elegant solution to this? <form> <input class="input_text" type="text" style="height:40px" value="some text"> <select st...

font is STUCK in times new roman in ie.

I am building a page, and when it is viewed in IE (all versions) the entire text is stuck on times new roman. Here is my CSS: body{ color:#222222; margin:0 auto; background-color:#000; font-family: "Tw Cen MT","Gill Sans","Century Gothic"; } In Safari and Firefox, the Tw Cen MT is displayed great, but in IE Times New r...

css sprites in IE6

I'm using the following code for star rating. The code works fine in firefox but it sucks (as usual) in IE6. The stars doesn't even show up in IE6, though they work perfectly. it uses sprites to display the stars. Also, I've fixed the PNG transparency issue with IE6. <div id="ajaxratemasuga"><div class="ratingblock"> <ul style="widt...

CSS sprite based rollover blinks in IE6

I'm using the CSS based rollover "trick" that switches the background position of the element's background image on hover. The CSS #welcome #step1 {background: transparent url(../img/mock/homepage_welcome_step1.png) no-repeat scroll left top;} #welcome #step1:hover {background: transparent url(../img/mock/homepage_welcome_step1.png) ...

ASP.NET: Enumerating header elements from codebehind

On Page_Load() in the codebehind, I'd like to enumerate all the <link> tags. The purpose being I want want to add a <link> to a CSS file if it isn't specified in the Page's markup. How can I do this? I'm thinking I should be able to use LINQ on the collection of elements in the header, no? Here's my pseudocode: var pageAlreadyContain...

Form Button with custom image and text

Solved! Thanks guys! Okay, in a form I have a button 170x60 with a custom image for the non-pressed and pressed states. What I can't seem to do is get There to be text in the button. I really want to avoid having to edit the image and write text to it directly. Right now I'm using <input type="image" src="img/button_normal.png" width="...

Hi I want to create several boxes and place thumb nails in them that link to larger pics

Hi I want to create several boxes and place thumb nails in them that link to larger pics is it best to use css or tables? ...

CSS: how to make margin: 0px auto work

Hi! I am trying to center images inside another block: The html code looks like this: <ul> <li> <a href="/article/japanese-culture-one/"> <img src="/site_media/upload/fushimi-inari-fox_jpg_200x200_q85.jpg" alt="Лисица Инари - один из мифических персонажей культа синто"/> </a> <br /> <a href="/article/jap...