This is a discussion on "display:block" within the Web Page Design section. This forum, and the thread "display:block are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
display:block
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
display:block
how come my display:block only makes the table dimesion around the FIRST <a> tag part of the hyperlink?
|
|
|
|
|||
|
I've no idea what you mean - can you be more descriptive or provide a demo?
|
|
||||
|
ok...
for example: code: <table> <tr> <td> Text </td> </tr> <tr> <td> Text </td> </tr> <tr> <td> Text </td> </tr> <tr> <td> Text </td> </tr> </table> only the first <a> fills the whole table cell, the others only apply the hyperlink to the text.. do you know what i mean now? |
|
|||
|
uh.. where's the rest of the code? That's HTML and that won't do anything except put a link on the Text. Has to be some CSS I am not seeing
|
|
|||
|
Assuming its nothing horribly simple I'd suggest it was a conflit with the table elements as sometimes CSS is not applied to elements within table. Show the CSS too.
|
|
|||
|
its an IE bug... as to how to fix it...
|
|
|||
|
|
|
|||
|
use a:hover to effect the rollover state...
|
|
||||
|
thanks but it still wouldn't look the same as if it was in a <td> though would it? sorry lol
|
|
|||
|
try this:
|
|
||||
|
ok this is the code I have for the menu:
|
|
||||
|
Why the tables? The whole point of XHTML and CSS is to lose code bloat (ie... tables)
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
the tables because i cant get
or <ul>[*] to go next to each other.. they go under each other instead |
|
||||
|
you need this:-
display:inline; on any block elements you want to be treated as inline elements... eg:- p tags, and li tags.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Hi I am fairly new to CSS, but I do not use any table tags at all.
Here is code for a navigation bar positioned to the left of the main content. CSS: #left {position:absolute; left:0; top:0; height:100%; width:200px; background:#aaa; background-position:0 100px; font-size:1em; color:#fff; z-index:4;} .pad2 {display:block; height:100px;} a.nav, a.nav:visited {display:block; width:100px; height:25px; text-decoration:none; color:#fff; font-weight:bold; line-height:25px;} a.nav:hover {color:#fc0;} HTML: <div id="left"> <div class="pad2"></div> <ul>[*]Home[*]About Me[*]Stuff[*]More Stuff[*]A whole lotta stuff[*]I'm finished[/list]</div> Hash marks in place of url to make is easier to read. My first post. Thanks capture |
![]() |
| Tags |
| displayblock |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Overriding display:inline-block | gazzou | Web Page Design | 0 | Aug 27th, 2007 12:03 |
| Display:Block in IE | sparadox | Web Page Design | 4 | Jul 25th, 2007 19:30 |
| Help With Display: Block Vertical Spacing Please | uqwebdesign | Web Page Design | 6 | Jun 13th, 2006 16:07 |
| New Man on the Block | phillyphreak | Introduce Yourself | 6 | Jul 1st, 2005 16:55 |
| display:block | benbacardi | Web Page Design | 4 | Apr 21st, 2004 19:40 |