Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 29th, 2006, 3:53 PM   #1
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
Expanding <a>

http://commodore.gran.ee/test/

How can I make the <a> tag the width of the rest? I put it in a div and succeeded but then I can't click on the whole thing.
Don't worry about the other things it's just very, very WIP.
commodore is offline   Reply With Quote
Old Dec 29th, 2006, 5:23 PM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
The a element defaults to being displayed inline. IIRC you need it to be displayed as a block in order to alter the width.
css Syntax (Toggle Plain Text)
  1. a.yourclass {
  2. display: block;
  3. width: 100px;
  4. }
Arevos is offline   Reply With Quote
Old Dec 30th, 2006, 8:26 AM   #3
commodore
Programmer
 
Join Date: Nov 2005
Location: Estonia
Posts: 97
Rep Power: 0 commodore is an unknown quantity at this point
Thanks Arevos, works perfectly!
commodore is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC