Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Closed Thread
 
Thread Tools Display Modes
Old Oct 15th, 2005, 5:08 PM   #31
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by bja888
I'm glad you guys are trying now but I wanted content in the middle of the two side boxes.
I'm not sure I understand you; why don't floating elements solve your problem?

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; }
I haven't tested the CSS, but the principle is well known for three-column CSS layouts.

Just google three column CSS layouts, and you'll find many like this.
Arevos is offline  
Old Oct 15th, 2005, 7:49 PM   #32
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
xhtml is more about layers
Bullshit.
__________________
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
DaWei is offline  
Old Oct 15th, 2005, 9:23 PM   #33
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
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:
Originally Posted by DaWei
Bullshit.
Well, I found these on w3.org
Quote:
XHTML structures have proven inadequate for describing the current applications of Web use. Furthermore, XHTML is intended to be used (with CSS) as the basis of a presentation layer directly;
http://www.w3.org/2000/10/DIAWorkshop/bartlett.html
Quote:
Instead, this document recommends that content authors rely upon style mechanisms such as CSS to define the formatting model for their content.
http://www.w3.org/TR/xhtml-modulariz...roduction.html

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.
bja888 is offline  
Old Oct 15th, 2005, 9:27 PM   #34
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
Quote:
Originally Posted by tempest
A problem might also be standards-complant JScript doesn't require a semicolon if there is not more than one command on a line... so your code there could confusicate some JS.
Watch out, JScript an JavaScript are diffrent. You can write an ASP page in JScript but not in JavaScript. Just as long as you don't call it Java I'm happy
bja888 is offline  
Old Oct 15th, 2005, 10:02 PM   #35
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
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.
__________________

tempest is offline  
Old Oct 15th, 2005, 11:01 PM   #36
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 582
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
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!!
crawforddavid2006 is offline  
Old Oct 15th, 2005, 11:29 PM   #37
bja888
Hobbyist Programmer
 
bja888's Avatar
 
Join Date: Oct 2005
Location: Central, FL
Posts: 213
Rep Power: 0 bja888 is an unknown quantity at this point
Send a message via AIM to bja888 Send a message via Yahoo to bja888
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.
bja888 is offline  
Old Oct 16th, 2005, 1:11 AM   #38
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
Quote:
That’s not how the browser would read it though so you don't need all those spaces.
WTF????

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.
bl00dninja is offline  
Old Oct 16th, 2005, 5:23 AM   #39
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Quote:
Originally Posted by bja888
Polyphemus_, you put that code on every page? Does php have something simalar to global.asax?
This is the file simular to global.asax (header.php):
<?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();
?>
Polyphemus_ is offline  
Old Oct 16th, 2005, 8:48 AM   #40
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
<!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>
That what ya meant? I'm not sure I understood what you wanted there.
__________________
Me :: You :: Them
Ooble is offline  
Closed Thread

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC