navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Making an Indention

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Making an Indention
Page: [1]
 
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
Making an Indention - 6/5/2007 15:20:30   
I need to make a small indent but cant figure out how. For example instead of:
- <a href="/media/media.php">Multi Media</a><br>
- <a href="/media/pics.php">Pictuers</a><br>
- <a href="/media/video.php">Videos</a><br>

I want it to look like this just not quite as centered as you see.
- <a href="/media/media.php">Multi Media</a><br>
- <a href="/media/pics.php">Pictuers</a><br>
- <a href="/media/video.php">Videos</a><br>


Here is the complete code.

<table width="750" height="100%" border="0" cellspacing="0" cellpadding="0" valign="top">
  <tr>
    <td width="130" valign="top"><br>
      <table align="center" width="130" border="1" bordercolor="#3399cc" "cellspacing="0" cellpadding="0" valign="top">
        <tr> 
          <td height="20" bgcolor="#336699" valign="center"><font face="verdana" size="2">
						: Navagation :</font></td>
        </tr>
        <tr> 
          <td valign="top"> 
            <p>
            <font face="verdana" size="1.5">            
               - <a href="index.php">Home</a><br>
               - <a href="shows.php">Shows</a><br>
               - <a href="results.php">Results</a><br>
               - <a href="roster.php">Roster</a><br>
               - <a href="/media/media.php">Multi Media</a><br>
               - <a href="/media/pics.php">Pictuers</a><br>
               - <a href="/media/video.php">Videos</a><br>
               - <a href="/forums/index.php">Message Board</a><br>
               - <a href="http://myspace.com/ccwprowrestling">CCW on Myspace</a><br>
               </font>
               </p>
            </td>
        </tr>
      </table>


How can i accomplish this? Thanks!
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: Making an Indention - 6/5/2007 15:47:42   
Welcome to OutFront!!!

I would use CSS.

Make a <div>. Then in your stylesheet make a class/id and set the margin to your needed spacing. So where you have <a href="/media/pics.php">Pictuers</a><br> it would look like <a class="whatever" href="/media/pics.php">Pictuers</a><br>. Repeat teh class value for each hyper link that you want indented.

Just thinking out loud. I have not tested this.

Take care,

Brian

_____________________________


(in reply to Xplorer4x4)
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
RE: Making an Indention - 6/6/2007 1:26:11   
Hmm the only problem with adding class to the anchor would be the dash would not be margined, only the text. So am I going to have to use a div instead to be able to margin the - as well as the anchor?

(in reply to Reflect)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Making an Indention - 6/6/2007 2:36:01   
What you've got there is a list of links and therefore it should all be within a list.

So instead of this:

 <p>
            <font face="verdana" size="1.5">            
               - <a href="index.php">Home</a><br>
               - <a href="shows.php">Shows</a><br>
               - <a href="results.php">Results</a><br>
               - <a href="roster.php">Roster</a><br>
                - <a href="/media/media.php">Multi Media</a><br>
               - <a href="/media/pics.php">Pictuers</a><br>
               - <a href="/media/video.php">Videos</a><br>
               - <a href="/forums/index.php">Message Board</a><br>
               - <a href="http://myspace.com/ccwprowrestling">CCW on Myspace</a><br>
               </font>
               </p>


I'd do this:
<ul id="linklist">
  <li>- <a href="index.php">Home</a></li>
  <li>- <a href="shows.php">Shows</a></li>
  <li>- <a href="results.php">Results</a></li>
  <li>- <a href="roster.php">Roster</a></li>
  <li>- <a href="/media/media.php">Multi Media</a></li>
  <li class="indent">- <a href="/media/pics.php">Pictuers</a></li>
  <li class="indent">- <a href="/media/video.php">Videos</a></li>
  <li class="indent">- <a href="/forums/index.php">Message Board</a></li>
  <li class="indent">- <a href="http://myspace.com/ccwprowrestling">CCW on Myspace</a></li>
</ul>


CSS:

#linklist li {list-style-type:none;font-family:Verdana, Arial, sans-serif; font-size:150%;}
#linklist li.indent {margin-left:20px;}


Ooh I'm on a roll now! Is this indented bit of the list actually sub-topics for the MultiMedia section? If so then what you want to do rather than faffing around with classes is to add a sub-list - that would be semantically correct so your HTML would be;

<ul id="linklist">
  <li>- <a href="index.php">Home</a></li>
  <li>- <a href="shows.php">Shows</a></li>
  <li>- <a href="results.php">Results</a></li>
  <li>- <a href="roster.php">Roster</a></li>
  <li>- <a href="/media/media.php">Multi Media</a>
     <ul>
	 <li>- <a href="/media/pics.php">Pictures</a></li>
         <li>- <a href="/media/video.php">Videos</a></li>
         <li>- <a href="/forums/index.php">Message Board</a></li>
         <li>- <a href="http://myspace.com/ccwprowrestling">CCW on Myspace</a></li>
     </ul>
  </li>
</ul>


And the CSS would be:

#linklist li {list-style-type:none;}
#linklist li li {color:red;}
#linklist li li a {color:red;}



< Message edited by Tailslide -- 6/6/2007 2:47:21 >


_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Xplorer4x4)
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
RE: Making an Indention - 6/6/2007 12:32:02   
Well I used
CSS:
#linklist li {list-style-type:none;}
#linklist li.indent {margin-left:10px;}


And my list went like:
<ul id="linklist">
  <li>- <a href="index.php">Home</a></li>
  <li>- <a href="shows.php">Shows</a></li>
  <li>- <a href="results.php">Results</a></li>
  <li>- <a href="roster.php">Roster</a></li>
  <li>- <a href="/media/media.php">Multi Media</a></li>
  <li class="indent">- <a href="/media/pics.php">Pictuers</a></li>
  <li class="indent">- <a href="/media/video.php">Videos</a></li>
  <li>- <a href="/forums/index.php">Message Board</a></li>
  <li>- <a href="http://myspace.com/ccwprowrestling">CCW on Myspace</a></li>
</ul>


Now I have a problem with the list not being alligned to the left. I tried to set a margin for #linklist li {list-style-type:none;} but had no success:
http://ccwwrestling.5gbfree.com/media.php

(in reply to Tailslide)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Making an Indention - 6/6/2007 14:33:07   
I'm not on my pc at the moment so i can't check for you - but I'd try fiddling with margins and padding on the UL rather than the LI.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Xplorer4x4)
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
RE: Making an Indention - 6/6/2007 14:51:55   
I tried this but it did not work:
#linklist ul {margin-left:0px;list-style-type:none;}

(in reply to Tailslide)
Reflect

 

Posts: 4769
From: USA
Status: offline

 
RE: Making an Indention - 6/6/2007 15:33:54   
You could also use a solution that is out there already...

http://www.google.com/search?hl=en&q=css%2Blist%2Bnavigation&btnG=Google+Search

Many navigation CSS lists to choose from.

Take care,

Brian

_____________________________


(in reply to Xplorer4x4)
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
RE: Making an Indention - 6/6/2007 15:40:36   
Thanks I will keep the list in mind for later but for now i just want to get the list organized this way.

(in reply to Reflect)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Making an Indention - 6/7/2007 10:14:58   
Ok change the #linklist ul rule to this:

#linklist  {margin-left:0px;list-style-type:none;padding:0;}


That fixes it.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Xplorer4x4)
Xplorer4x4

 

Posts: 18
Joined: 5/22/2007
Status: offline

 
RE: Making an Indention - 6/7/2007 12:15:14   
Tailslide to the rescue once again! I was so close to :p

Thanks again!

(in reply to Tailslide)
Misafir

 

Posts: 4
Joined: 7/20/2007
Status: offline

 
RE: Making an Indention - 7/21/2007 10:46:00   
Nice thank youu.

(in reply to Xplorer4x4)
mtfm

 

Posts: 426
Joined: 1/13/2006
From: Mesa, AZ
Status: offline

 
RE: Making an Indention - 7/23/2007 19:22:28   
I would have just used
<blockquote>
             -stuff to be indented goes here
</blockquote>



I was wondering why no one suggested this, did a quick google search, and noticed that this tage is apparently deprecated. :)


/rushes off to update site, where this tag is used nearly every time an indent is required.

_____________________________

Is this possible? How about this? What about....?

(in reply to Xplorer4x4)
d a v e

 

Posts: 4169
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: Making an Indention - 7/24/2007 0:15:26   
not as far as i'm aware: http://www.w3.org/TR/html401/struct/text.html#edef-BLOCKQUOTE

you wouldn't use blockquote for this anyway, only for - wait for it- block quotes! :)

_____________________________

David Prescott
Gekko web design

(in reply to mtfm)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Making an Indention - 7/24/2007 2:57:28   
Blockquotes are fine for quotes as Dave says but I wouldn't use them just to indent text - much easier just to add a left-margin to whatever bit of the page the text to be indented is in - in this case a list. It's all about semantics - proper use of tags.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to d a v e)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Making an Indention
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts