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 |
|
#1
|
||||
|
||||
|
display:block
how come my display:block only makes the table dimesion around the FIRST <a> tag part of the hyperlink?
|
|
|
|
#2
|
||||
|
||||
|
come on guys i rely on u lol :wink:
|
|
#3
|
|||
|
|||
|
I've no idea what you mean - can you be more descriptive or provide a demo?
|
|
#4
|
||||
|
||||
|
#5
|
|||
|
|||
|
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
|
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
||||
|
||||
|
the css is is purely
a { display:block; } |
|
#8
|
|||
|
|||
|
its an IE bug... as to how to fix it...
|
|
#9
|
|||
|
|||
|
#10
|
||||
|
||||
|
but i need them in <td> because the <td> themselves have a rollover, so they cell changes colour... i suppose i could always add a onclick="location='index.html'" to the <td> but apart from that...
|
|
#11
|
|||
|
|||
|
use a:hover to effect the rollover state...
|
|
#12
|
||||
|
||||
|
thanks but it still wouldn't look the same as if it was in a <td> though would it? sorry lol
|
|
#13
|
|||
|
|||
|
try this:
|
|
#14
|
||||
|
||||
|
thanks i'd forgotton about the wonderful awesome power that is CSS!
|
|
#15
|
||||
|
||||
|
ok this is the code I have for the menu:
|
|
#16
|
||||
|
||||
|
Why the tables? The whole point of XHTML and CSS is to lose code bloat (ie... tables)
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#17
|
||||
|
||||
|
the tables because i cant get
or <ul>[*] to go next to each other.. they go under each other instead |
|
#18
|
||||
|
||||
|
you need this:-
display:inline; on any block elements you want to be treated as inline elements... eg:- p tags, and li tags.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#19
|
|||
|
|||
|
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 |
|
#20
|
|||
|
|||
|
Sorry, didn't see the PLEASE REMEMBER message. Will not do that again.
capture |
![]() |
| Tags |
| displayblock |
| Thread Tools | |
|