![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Quote:
Also, if you're merely after page layout, why not use absolute positioning and margins? e.g. something like: left { position: absolute; top: 10px; left: 10px; width: 100px; }
right { position: absolute; top: 10px; right: 10px; width: 100px; }
middle { position: absolute; top: 10px; left: 120px; margin-right: 120px; }Just google three column CSS layouts, and you'll find many like this. |
|
|
|
|
|
#32 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#33 | |||
|
Hobbyist Programmer
|
Arevos, I wish it where that simple... I want a layer in the middle of the page to stretch the page, but not all the way. So I set it to 90%. Then I align the two side images from the left and right styles, 10 pixels. They won't line up perfectly every time. It would depend on the window size.
Polyphemus_, you put that code on every page? Does php have something simalar to global.asax? Quote:
Quote:
Quote:
Not to mention I can get over 90% of the people on webmaster-forums.net to agree with me. All the moderators and administrators at least. |
|||
|
|
|
|
#34 | |
|
Hobbyist Programmer
|
Quote:
![]() |
|
|
|
|
|
#35 |
|
Programming Guru
![]() |
Listen you arrogant bastard, i'm not trying to make your fatuous ass happy. JScript was MicroSoft's version of JavaScript when it release IE, i know that, but i'm too fucking lazy to type out JavaScript when everybody will know what i mean when i say JScript. You're a fucking over-analytical facist kind of guy to whom air wastes it's time keeping alive.
__________________
|
|
|
|
|
#36 |
|
Expert Programmer
|
Hey. Tempest pretty covers all of what I was going to say except this. What are you trying to prove? You already think you know it all. Are you just trying to prove that to yourself or is this how you waste time? Personally I think you need to get a life and shut the fuck up and stop bothering people!!
|
|
|
|
|
#37 |
|
Hobbyist Programmer
|
No, I'm just waiting for some one to say the exercise cannot be done and you are to stubborn to accept that html isn't perfect.
Html works if you only have text. If you want a more dynamic look you have to make a better language. I, like most webmasters (developers, ect.) also want to bring an end to the browser incompatibility issues. |
|
|
|
|
#38 | |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
Quote:
this is common practice because it makes sense. whitespace in your text isn't going to slow the f***ing browser down.
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#39 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
Quote:
<?php
ob_start("strip_nl");
?>
[i]html code for the header over here...[/í]
<?php
function strip_nl($buffer) {
return str_replace("\r\n", " ", $buffer);
}
function footer() {
?>
html code for the footer...
<?php
ob_end_flush();
}
?>and this is what e.g. index.php looks like: <?php
include("header.php");
?>
content code here...
<?php
footer();
?> |
|
|
|
|
|
#40 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<style>
#largeBoxOne
{
margin: 100px 50px;
height: 150px;
background-color: #4B5F73;
text-align: center;
}
#goLeft
{
float: left;
width: 150px;
height: 150px;
background-color: #3C6A5E;
}
#goRight
{
float: right;
width: 150px;
height: 150px;
background-color: #3C6A5E;
}
</style>
</head>
<body>
<div id="largeBoxOne">
<div id="goLeft">Left</div>
<div id="goRight">Right</div>
Middle
</div>
</body>
</html> |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|