943,547 Members | Top Members by Rank

Ad:
Jan 2nd, 2009
0

Borders

Expand Post »
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

css Syntax (Toggle Plain Text)
  1. p4 {
  2. border: medium double #000000;
  3. }

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

html Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
samuelk1934 is offline Offline
1 posts
since Jan 2009
Jan 2nd, 2009
0

Re: Borders

This is what you html would look like:

html Syntax (Toggle Plain Text)
  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:

css Syntax (Toggle Plain Text)
  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.

html Syntax (Toggle Plain Text)
  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.
Reputation Points: 178
Solved Threads: 15
Nearly a Posting Virtuoso
roryt is offline Offline
1,282 posts
since Oct 2005
Jan 6th, 2009
0

Re: Borders

There is no p1 tag in html. One browser had a nonstandard extension that used it. My advice is DON'T!
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Help with CSS url links on Multi pages
Next Thread in HTML and CSS Forum Timeline: Curved buttons





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC