) inside an inline element(
)
I do this is because I want the surface around the text to be
clickable, as is the case right now. check out the buttons under the
banner.
HTML
Picture
Archive |
CSS
..link{width:100%;height:100%;}
Now I have tried alternatives:
alternate test page: http://bjorntoday.com/try.html
1) Try to style the a tag
|
ok for the validator, but as you will see only the text is clickable,
surface around it does not respond. not the result I want
2) Replace block element div with inline element span
Picture
Archive |
same problem, I think it is the nature of inline elements just to
affect the area immediately around the text
I do not want to have to compromise the fact that the surface around
the link is clickable, what would be an alternative method?
Re: Passing Validation
am 23.05.2007 11:26:31 von blessblessbless
On May 23, 3:25 pm, "Chris F.A. Johnson" wrote:
> On 2007-05-23, Mohawk Mawk wrote:
>
> > ok
> > 1. the marquee tag will be gone, its just a placeholder.
>
> What marquee tag?
>
> This is Usenet, not Google Groups. Please quote enough relevant
> material so that people know what you are talking about.
>
> > 2. the a element is a inline element and has no surface like a block
> > element mister smarty pants.
>
> You can make it a block element with CSS (though I doubt that
> that's necessary).
>
> > just so you can see what i mean i have uped the new code
> >http://bjorntoday.com/?page=Imprint =E
> > notice any difference between the "Picture Blog" and "Picture Archive"
> > buttons?
>
> No. There is none.
>
> > HTML
> >
> > td>
> > | Picture
> > Archive |
> > CSS
> > .link{width:100%;height:100%; }
>
> Why are you using a table for non-tabular material?
>
> > the "Picture Blog" button is only clickable on the text, even though
> > it has the same class as the DIV, witch is fully clickable around the
> > text.
>
> > and that is why i need a block element like div in an inline element
>
> Please explain what you want. It's not clear from your post or your
> web page.
>
> > why should this cause an error in the validation?
>
> It's like wearing your shoes inside your socks.
>
> --
> Chris F.A. Johnson
> ============================================================ =======
> Author:
> Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
OK never mind, thank you, the answer is quite simple display:block;
thank you and please ignore the confusion of this thread if you are
trying to understand what was going on :D
Re: Passing Validation
am 23.05.2007 14:49:04 von Bergamot
Mohawk Mawk wrote:
>
> I have attempted to put a block-
> level element (