Reply

Join Date: Jan 2009
Posts: 1
Reputation: samuelk1934 is an unknown quantity at this point 
Solved Threads: 0
samuelk1934 samuelk1934 is offline Offline
Newbie Poster

Borders

 
0
  #1
Jan 2nd, 2009
Hi

I am trying to put a Border around 6 links to other pages. I am using a ref from a stylesheet that i have created

i made the border like this within my stylesheet

  1. p4 {
  2. border: medium double #000000;
  3. }

The text that i want to put the border around looks as follows

  1. <p1><a href= link</a></p1>
  2. <p1><a href= link</a></p1>
  3. <p1><a href= link</a></p1>
  4. <p1><a href= link</a></p1>
  5. <p1><a href= link</a></p1>
  6. <p1><a href= link</a></p1>

I have never designed a web page and i am very new to this have been trying it out to desig i webpage for the company i work for.

I am using Dreamweaver CS3
Last edited by peter_budo; Jan 6th, 2009 at 9:36 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1,283
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Solved Threads: 14
roryt's Avatar
roryt roryt is offline Offline
Nearly a Posting Virtuoso

Re: Borders

 
0
  #2
Jan 2nd, 2009
This is what you html would look like:

  1. <div id="border_links">
  2. <p1><a href=""> link</a></p1>
  3. <p1><a href=""> link</a></p1>
  4. <p1><a href=""> link</a></p1>
  5. <p1><a href=""> link</a></p1>
  6. <p1><a href=""> link</a></p1>
  7. <p1><a href=""> link</a></p1>
  8. <p1><a href=""> link</a></p1>
  9. </div>

And this is the css:

  1. #border_links {
  2. border: medium double #000000;
  3. }

I have changed the css identifier to the id border_links because p4 refers to a paragraph of text which isn't really what you are doing.

Actually if anything it should be displayed as a list.

  1. <ul>
  2. <li><a href="link.html">link</a></li>
  3. <li><a href="link.html">link</a></li>
  4. <li><a href="link.html">link</a></li>
  5. <li><a href="link.html">link</a></li>
  6. </ul>

In this case you can use the style sheet to control the unordered list element (ul).

I have also changed you link syntax because it was wrong... but i think you knew that.

I hope that helps.
PhotoShopthis
FlyingPen
If I have helped you please add to my reputation
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,193
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 163
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Sensei

Re: Borders

 
0
  #3
Jan 6th, 2009
There is no p1 tag in html. One browser had a nonstandard extension that used it. My advice is DON'T!
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC