Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 06-21-2005, 11:02 PM HTML tab?
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
Ok i've asked a bunch of people and googled this for awhile. Is there any other way to make a tab in html without using (and)nbsp's all over the place? If there is a way in html is it different in XHtml?
The_Anomaly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-22-2005, 03:04 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
HTML and XHTML are the same thing effectively.

can be done with CSS fairly simply. The tab menu on the second site in my sig uses CSS for layout and server-side code (asp) for switching modes.

Was something like that what you where thinking of ?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-22-2005, 01:06 PM
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
When i say tab i mean something you would put at the begining of a paragraph. I think your thinking i'm talking about button tabs
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Old 06-22-2005, 01:49 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A tab character not a tab then

there isn't in HTML , But there is text-indent in CSS
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-22-2005, 02:24 PM
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
Thats what i'm talkin bout . but there is no way to do it without using CSS eh?

Now how would i incorporate that into a PHP page. I'm trying to make a simple table showing a Specifier table that has the letter of the specifier then tabs and explains what it does. The way i have it written is a very tedious way and i would more than likely not do this if i was actually making a page but I started to teach myself PHP yesterday and i was playing with functions and passing variables. This is the code i have that makes the table. If you put this code into a PHP file you will see they do not align evenly, but it does work.

Code:
<html>
<head>
<title>Using PHP functions</title>

</head>
<body>

<?php 
class MyClass{
	function header(){
	echo "<h1>Type Specifiers</h1><br>";
	}
	function LineBreaks(){
		echo "<hr><br>";
	}
	function Tabbing(){
	echo "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp         ";
	}
	function argumentText($type){
	
	echo "<font face=\"Helvetica, Arail, Sans-Serif\">Displays and argument as a $type number</font><br>";
	}
	function integerText($type){
	
	echo "<font face=\"Helvetica, Arail, Sans-Serif\">Displays an Integer as an $type number</font><br>";
	}
	function TextFormat($word, $size){
	echo "<font size=\"$size\"
			face=\"Helvetica, Arail, Sans-Serif\">$word</font>";
	}
}


$formatting = new MyClass();
$formatting -> header();
$formatting -> LineBreaks();
$formatting -> TextFormat("Specifiers",4);
$formatting -> Tabbing();
$formatting -> TextFormat("Description",4);
echo "<br>";
$formatting -> LineBreaks();

echo "d";
$formatting -> Tabbing();
$formatting -> argumentText("decimal");

echo "b";
$formatting -> Tabbing();
$formatting -> integerText("binary");

echo "c";
$formatting -> Tabbing();
$formatting -> integerText("ASCII");

echo "f";
$formatting -> Tabbing();
$formatting -> integerText("float");

echo "o";
$formatting -> Tabbing();
$formatting -> integerText("octal");

echo "s";
$formatting -> Tabbing();
$formatting -> argumentText("string");

echo "x";
$formatting -> Tabbing();
$formatting -> integerText("lowercase heximaldecimal");

echo "X";
$formatting -> Tabbing();
$formatting -> integerText("uppercase haxidecimal");

?>
</body>
</html>
I tried putting

Code:
	<style type="text/css">
P {
	text-indent: 20px
}
  	</style>
In the head tag then putting

Code:
echo "<P></P>";
But it made a line break.

Last edited by The_Anomaly; 06-22-2005 at 02:37 PM..
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HTML tab?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29270 seconds with 12 queries