[HELP] PHP + CSS box?

Status
Not open for further replies.

Donkjam

Professional Moderator
Contributor
Nov 20, 2010
1,610
1,605
Can anyone provide me any information or code that can make a simple grey box on a page where I can put let say 'comin soon' with CSS I imagine??
 

Predict

Active Member
Jun 27, 2011
126
63
Code:
<!DOCTYPE html>
<head>
<title>Coming soon</title>
<style type="text/css">
html{height:100%;margin:0 0 1px;font-size:100%;}body{background-color:#000;font:normal 11px tahoma, sans-serif;margin:0;padding:0;}#container{width:600px;margin:0 auto;}#container #greybox{background-color:grey;padding:10px;border-radius:6px;color:#FFF;}
</style>
<body>
<div id="container">
<div id="greybox">
<?php echo 'Coming soon'; ?>
</div>
</div>
</body>
</html>

Try that, just coded it, not sure what it looks like. ;p
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Code:
<!DOCTYPE html>
<head>
<title>Coming soon</title>
<style type="text/css">
html{height:100%;margin:0 0 1px;font-size:100%;}body{background-color:#000;font:normal 11px tahoma, sans-serif;margin:0;padding:0;}#container{width:600px;margin:0 auto;}#container #greybox{background-color:grey;padding:10px;border-radius:6px;color:#FFF;}
</style>
<body>
<div id="container">
<div id="greybox">
<?php echo 'Coming soon'; ?>
</div>
</div>
</body>
</html>

Try that, just coded it, not sure what it looks like. ;p
Why the hell would you use server-side code when you can just write "coming soon"?
 

Predict

Active Member
Jun 27, 2011
126
63
Why the hell would you use server-side code when you can just write "coming soon"?
He requested it to be in PHP, as it said in the thread title...?

Looking back at the source, you're going to need to add the </head> tag and maybe add some margin onto the container, haha. ;p
 

Donkjam

Professional Moderator
Contributor
Nov 20, 2010
1,610
1,605
Thanks both of you ^^ I like the way adil has like the CSS seperate that's kinda what I wanted ^^, I'll try both out later
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
He requested it to be in PHP, as it said in the thread title...?

Looking back at the source, you're going to need to add the </head> tag and maybe add some margin onto the container, haha. ;p
Don't use a chainsaw to do what can be done with a knife.
 
Status
Not open for further replies.

Users who are viewing this thread

Top