|
You can use percentages and "ems" to define widths of all elements.
You can define a standard size in your css for your "body" element - and then define all other sizes relative to that using "ems".
<pre><html>
<head>
<style type="text/css">
body{
font-size: 18px;
}
table{
width: 80%;
}
table td{
font-size: 0.8em;
}
</style>
</head>
<body>
Standard text
<table>
<tr>
<td>My Text</td>
</tr>
</table>
</body>
</html></pre>
|
|
|
|
|
Always use Fixed width to all components of your html.
Use fixed Width to the page always so that if resolution changes the pages look the same.
|
|
|
|
|
When I typed "web page screen resolution" into google, it pulled up over 43 million search results. The first page of the list includes several links that answer your question in detail.
|
|
|
|
|
I would like to ask that i created a discussion forum on PHP and want to change its background color to blue and font color to grey.
I tried the following attempts which i searched:
1) $BGColour = "#CCCCCC";
2) <style>
body { background-color: #ccffcc; }
</style>
3) $colour=$_GET["bg"];
echo 'Black
';
|
|
|
|
|
First off theres a dedicated php forum on this site - which might get you more replies in future.
Now to answer your question.
If you're doing all those at once then the problem you are having appears to be that you are setting the background colour twice. The following code should work:
<?php <?php
$bgColour = "#CCCCCC";
?>
<html>
<head>
<style type="text/css">
body{
background-color: <?=$bgColour;?>;
color:#FFFFFFF;
}
</style>
</head>
<body>
Blah Blah Blah
</body>
</html>
If the bg colour is being set more than once some settings may override others. Also ife a div is the entire size of the page and that has a bg colour then the page will appear that color. I suggest doing a find on all the files in your forum for the phrase "background-color".
If you editing a css file and want to put php in it then you'll need to add a .htaccess file in the same directory as your css file that says to parse all css files as php:
# Allows css files to be parsed like php - you may need an alternative entry here
AddType application/x-httpd-php .css
Then you'll need to add:
<?php <?php
header("Content-Type: text/css");
?>
to the top of your css file.
I think that just about covers everything.
|
|
|
|
|
Hi !
I'm facing the following problem . I developed a web page (aspx - .net 3.5)
with some controls inside an ajax updatepanel.
The application works in debug mode with vs2008 development server .
when I deploy on production server, using the page controls I get the error "sys.webforms.pagerequestmanagerservererrorexception".
When I debug the code I understand the origin of the problem : Il seems that IIS ( IIS 5.1 ) clears all session variables! So the controls inside the updatepanel can't get session variables values ( this throws sys.webforms.pagerequestmanagerservererrorexception )
What's the matter with IIS ?
( Note : in web.config and Virtual Folder settings : <sessionState mode="InProc" cookieless="false" timeout="200" /> .
How can I manage this situation ? Can you help me ?
Thanks in advance .
|
|
|
|
|
what is the seesion timeout for IIS ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
the session timeout was 20 seconds.
I set it to 60 seconds : I get the same error !
|
|
|
|
|
anto2005 wrote: timeout was 20 seconds.
I set it to 60 seconds
Are you sure you set 60 seconds.. Generally the default IIS session timeout is 20 minutes.
60 seconds is very small time.
|
|
|
|
|
|
|
Just double - checked with PocketGear and apparently the site isn't violating their policies, even if it's in violation of the DMCA.
|
|
|
|
|
How do I get a web site (one damn page) to be recognised in at very least a Google search for the domain name, never mind the content. Google disputed my first 'global' blog site, The Hash Table, which took about two weeks to resolve, but works very well now, was handled by WordPress and Plug-Ins, as a complex site.
The one I'm dealing with now, however, has no sitemap, as it only has one page. Could this be an issue? Do the Evil Google automatically dispute all SA domains? Do photos of urban cottages resemble child porn? Do I have to spend all night creating other sites (through C#, hehe) that link to this one? A perverse perversion of how TwitterBots work?
Last modified: 19mins after originally posted --
modified on Tuesday, September 1, 2009 1:23 PM
|
|
|
|
|
Port for children? Brilliant! Get 'em weaned off of all that nasty acetaminophen...
(i have no idea what the answer to your question is; you could probably try linking to the page in your signature here...)
|
|
|
|
|
Hi everybody.
Good moring!. As i am working in a web development using Ruby on Rails with MySql server. And i am new for this development. Please give me the tutorials link for Ruby on rails
Thanks,
Periyasamy.
|
|
|
|
|
I think you are on a Wrong Forum
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Can you reply me where i can post my question?. I searched for "Ruby on Rails". but nowhere.
Thanks,
Periyasamy.
|
|
|
|
|
Here
http://railsforum.com/[^]
or here
http://www.ruby-forum.com/forum/3[^]
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Thanks for this help
|
|
|
|
|
WELCOME
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
i am using vs2005 with window vista.My programe execution doesn't stop at break point.somebody help me please.
|
|
|
|
|
When you Double Click to Create a Break point do you get a warning when you move your mouse over ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
You Replied to the Wrong Person.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
It is early for me and I've only had one cup of coffee.
Poor forum etiquette on my part. Hopefully he will see my post.
|
|
|
|