All Questions
564
questions
1725
votes
30
answers
959k
views
How Can I add HTML And CSS Into PDF [closed]
I have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7. It uses fairly basic CSS to style it and renders fine in HTML.
I'm now after a way of converting it to PDF. I have tried:...
7
votes
2
answers
5k
views
Seo Friendly URL results in CSS IMG and JS not working
I want to make my URL as SEO Friendly URL. I tried editing .htaccess file by rewriting rule
RewriteRule ^swift-details/([0-9]+)/([0-9a-zA-Z_-]+)$ swift-details.php?id=$1 [NC,L]
RewriteRule ^swift-...
20
votes
9
answers
128k
views
How to write specific CSS for mozilla, chrome and IE
What would be the CSS conditional statement you can use to include specific CSS for IE, Mozilla, Chrome.
If IE
#container { top: 5px; }
If Mozilla
#container { top: 7px; }
If Chrome
#...
6
votes
6
answers
62k
views
Hiding a Div using php
I am currently hiding a div based on an if statement. The method I use is, use echo out a css style of display: none
Here is what I am doing specifically:
<style>
#content{
<?php
...
40
votes
17
answers
460k
views
How to import/include a CSS file using PHP code and not HTML code?
I have googled a lot but it seems that I am doing something wrong.
I want to do this:
<?php
include 'header.php';
include'CSS/main.css';
...
?>
However, my page prints the CSS code.
Note: I ...
57
votes
6
answers
21k
views
Multiple javascript/css files: best practices?
I have about 7 Javascript files now (thanks to various jQuery plugins) and 4-5 CSS files. I'm curious as to what's the best practice for dealing with these including where in the document they should ...
16
votes
2
answers
23k
views
Scroll bar for Datalist in HTML5
I am having trouble with datalist in HTML5, i have 10000 rows to display in my option values, I am populating from mysql using PHP, for some reason I can't see any scrollbar, i tried overflow:scroll ...
4
votes
7
answers
9k
views
Continuing overflowed text in a different div?
What I am trying to do is create a site that displays my rants in faux letter form.
I want the "paper size" (div size) to be fixed, and the text to continue on the second piece of paper (a second div)...
16
votes
3
answers
65k
views
HTML PHP Progress Bar
I have a website with a form that uses PHP to send the form data. Is there a way to create a progress bar on the page that looks like it is in action, so that people don't click the button more than ...
31
votes
6
answers
128k
views
PHP - Check if the page run on Mobile or Desktop browser [duplicate]
In my PHP page I should display two different text contents according to whether the page run under mobile or desktop browser. Is there a way to perform this control in PHP?
26
votes
19
answers
54k
views
Easiest way to alternate row colors in PHP/HTML?
Here's a PHP example of mine. Can anyone find a shorter/easier way to do this?
<? foreach($posts as $post){?>
<div class="<?=($c++%2==1)?‘odd’:NULL?>">
<?=$post?>
...
79
votes
11
answers
292k
views
how to get the base url in javascript
I am building a website with CodeIgniter, I have various resources that I load with the base_url helper function like this
<link rel="stylesheet" type="text/css" href="'.base_url('assets/css/...
69
votes
15
answers
85k
views
How to wrap long lines without spaces in HTML?
If a user types in a long line without any spaces or white space, it will break formating by going wider than the current element. Something like:
HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA.............
12
votes
14
answers
98k
views
Add class="active" to active page using PHP
Dynamic Header, CSS Class Change To Active USING PHP (dirrectory)
I want the class of the <li> tag to change under the active dirrectory...
now, every guide shows me how to do it when your ...
22
votes
8
answers
65k
views
PHP E-mail Form Sender Name Instead Of E-mail?
Right now, I've set up a PHP e-mail form and everything works fine. However, while testing it, I'm only getting the sender e-mail address as the name. What I want is the name of the sender, like:
...