RSS Forums RSS

Borders

Please support our HTML and CSS advertiser: Programming Forums
Reply
Posts: 1
Reputation: samuelk1934 is an unknown quantity at this point 
Solved Threads: 0
samuelk1934 samuelk1934 is offline Offline
Newbie Poster

Borders

  #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 8:36 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,266
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

  #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>
  10.  

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  
Posts: 3,109
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 155
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Sensei

Re: Borders

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the HTML and CSS Forum
Views: 420 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:17 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC