Re: [css-d] can a div be a link?

2010-12-25 Thread Chetan Crasta
Oops wrong link: http://roughtech.com/t/pcv.html

~Chetan

On Sat, Dec 25, 2010 at 6:54 PM, Chetan Crasta  wrote:
> @David and Felix: Thanks for the feedback.
>
> I have fixed the issues mentioned. The IE7 issues mentioned by Felix
> were due to an IE7 bug that is fixed with body{font-size:100%}. See:
> http://roughtech.com/t/pcv1.html
>
> ~Chetan
>
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-25 Thread Chetan Crasta
@David and Felix: Thanks for the feedback.

I have fixed the issues mentioned. The IE7 issues mentioned by Felix
were due to an IE7 bug that is fixed with body{font-size:100%}. See:
http://roughtech.com/t/pcv1.html

~Chetan
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-24 Thread Felix Miata

On 2010/12/24 18:45 (GMT-0500) Chetan Crasta composed:


Michael Beaudoin composed:



http://ba-doyn.com/junk/link_test/


It takes 6 zooms to make the header image's last line legible at 144 DPI, one 
less for most of the rest of the content, one more for the text on the orange 
backgrounds. All those zoom increments make the submit button and any text 
typed in the input boxes almost as big as .head.



24px minimum font size makes much content either disappear, or superimpose 
over/under other content.  Line length in #leftcol p is about 5 words, too 
short to appear competently designed. Nothing but the first line over orange 
backgrounds in #centercol is legible due to superimpositions. .msgUnsupported 
sits all but about 1em to the right of #page-wrap. Domi shows multiple 
#newsbox instances.


It's seriously annoying to see a "download the plugin" message taking up 1/3 
of a page in an HTML5 capable browser like FF4 that will never have any 
plugin for proprietaryware installed. As long as you're using script anyway, 
you should consider providing modern content for modern browsers supporting it.



It is best to have the logo in an img element because the logo is not
just decorative. Only decorative images should be backgrounds.

...

Avoid using Flash. Flash can be used for videos, animations and for
certain special uses. Use CSS and Javascript for everything else. It
is more efficient and accessible.
I have rebuilt your page with these principles in mind:
http://roughtech.com/t/pcv.html


Nothing but the first line over orange backgrounds is legible due to 
superimpositions, mostly from #rightcol. Little of top_footer_logos.gif is 
anywhere near legible.

--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://fm.no-ip.com/
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-24 Thread David Laakso

On 12/24/10 6:46 PM, Chetan Crasta wrote:

The link: http://roughtech.com/t/pcv.html


I have rebuilt your page with these principles in mind:
http://roughtech.com/t/pcv.html

~Chetan




Friendly suggestions :-) .

1/ Check the makeover at [minus] -3 font-scaling in FF .
2/ Set FF minimum font-size 24 in the prefs and check the makeover.

Best,
~scrooge
London


--
http://chelseacreekstudio.com/
http://chelseacreekstudio.com/fa/

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-24 Thread Chetan Crasta
The link: http://roughtech.com/t/pcv.html

On Sat, Dec 25, 2010 at 5:15 AM, Chetan Crasta  wrote:
>>> Or why not set an  to display block and have the logo be the bg of
>>> that  instead of the div?
>>>
>>
>> Wouldn't that mess up the nav in the div then?
>>
>
> It is best to have the logo in an img element because the logo is not
> just decorative. Only decorative images should be backgrounds.
> A few suggestions about your design:
> Don't use   to create spacing. Use margins or padding. This keeps
> your design flexible and your html lean.
> The  element is only for paragraphs. Use ul or ol for lists and menus.
> Headings should be in  elements.
> Use background-color instead of images for background color.
> Avoid using Flash. Flash can be used for videos, animations and for
> certain special uses. Use CSS and Javascript for everything else. It
> is more efficient and accessible.
> I have rebuilt your page with these principles in mind:
> http://roughtech.com/t/pcv.html
>
> ~Chetan
>
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-24 Thread Chetan Crasta
>> Or why not set an  to display block and have the logo be the bg of
>> that  instead of the div?
>>
>
> Wouldn't that mess up the nav in the div then?
>

It is best to have the logo in an img element because the logo is not
just decorative. Only decorative images should be backgrounds.
A few suggestions about your design:
Don't use   to create spacing. Use margins or padding. This keeps
your design flexible and your html lean.
The  element is only for paragraphs. Use ul or ol for lists and menus.
Headings should be in  elements.
Use background-color instead of images for background color.
Avoid using Flash. Flash can be used for videos, animations and for
certain special uses. Use CSS and Javascript for everything else. It
is more efficient and accessible.
I have rebuilt your page with these principles in mind:
http://roughtech.com/t/pcv.html

~Chetan
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Michael Beaudoin
On Wed, Dec 22, 2010 at 5:36 PM, Michael Beaudoin doyn.com> wrote:

Is it possible for a div to be a link?

I'm trying to make a logo, which is a background in a masthead, as  
a link.

The masthead div also contains the horizontal nav.

I was thinking of making another div, float it left and use a  
negative
margin (or a positioning attribute) to position the box over the  
logo and

have the link over the logo.

I'm sure this is a super hack and there is a better way, if anyone  
cares to

enlighten me.

Thanks,
Michael



Message: 15
Date: Thu, 23 Dec 2010 10:40:58 -0500
From: Tom Livingston 
To: Michael Beaudoin 
Cc: css-d@lists.css-discuss.org
Subject: Re: [css-d] can a div be a link?
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

Or why not set an  to display block and have the logo be the bg of
that  instead of the div?



Wouldn't that mess up the nav in the div then?

Michael
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Tom Livingston
Or why not set an  to display block and have the logo be the bg of
that  instead of the div?



On Wed, Dec 22, 2010 at 5:36 PM, Michael Beaudoin  wrote:
> Is it possible for a div to be a link?
>
> I'm trying to make a logo, which is a background in a masthead, as a link.
> The masthead div also contains the horizontal nav.
>
> I was thinking of making another div, float it left and use a negative
> margin (or a positioning attribute) to position the box over the logo and
> have the link over the logo.
>
> I'm sure this is a super hack and there is a better way, if anyone cares to
> enlighten me.
>
> Thanks,
> Michael
> __
> css-discuss [cs...@lists.css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>



-- 

Tom Livingston | Senior Interactive Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Tom Livingston
Maybe i'm missing something, but wouldn't it be better to just put the
image in there as content (IMHO, it's relevant content and not just
decoration) and wrap it in an href?



On Wed, Dec 22, 2010 at 5:36 PM, Michael Beaudoin  wrote:
> Is it possible for a div to be a link?
>
> I'm trying to make a logo, which is a background in a masthead, as a link.
> The masthead div also contains the horizontal nav.
>
> I was thinking of making another div, float it left and use a negative
> margin (or a positioning attribute) to position the box over the logo and
> have the link over the logo.
>
> I'm sure this is a super hack and there is a better way, if anyone cares to
> enlighten me.
>
> Thanks,
> Michael
> __
> css-discuss [cs...@lists.css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>



-- 

Tom Livingston | Senior Interactive Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.com
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Michael Beaudoin

On Dec 23, 2010, at 8:13 AM, Tim Arnold wrote:

Sure. Here it is. http://ba-doyn.com/junk/link_test/

You'll see the outlined block in the upper left. I would like the  
block to have a link, but obviously no copy in there.


Thanks,
Michael


If you put a link in that div (around the text), you can make it a  
block and it should accomplish what you want:


#homeLink a{
display: block;
height: 93px;
width: 325px;
}

You will still have the text showing, which you can hide with "text- 
indent: -999em;".  It will work, but is not as good as just having  
the image in there, linked, with healthy "alt" text.  Google doesn't  
like it when you hide text.




Thanks to all who helped me with this. As usual, it was much easier  
once I saw it through some other eyes.


Also, like photoshop, it shows that there are many ways to do similar  
things.


Merry Christmas and Happy Holidays.

Michael
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Alan Gresley

On 24/12/2010 12:59 AM, Michael Beaudoin wrote:

On 12/22/10 5:36 PM, Michael Beaudoin wrote:

Is it possible for a div to be a link?

I'm trying to make a logo, which is a background in a masthead, as a
link. The masthead div also contains the horizontal nav.

Thanks,
Michael




Can you post the page uri to the list?

~d



Sure. Here it is. http://ba-doyn.com/junk/link_test/

You'll see the outlined block in the upper left. I would like the block
to have a link, but obviously no copy in there.

Thanks,
Michael


Change your CSS to,

#homeLink {
position: absolute;
width: 325px;
height: 100px;
top: 0;
}

and change this markup,

this box needs to link, border for definition only

to.

Home Link


--
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Chetan Crasta
>>> Is it possible for a div to be a link?
>>>
>>> I'm trying to make a logo, which is a background in a masthead, as a
>>> link. The masthead div also contains the horizontal nav.
. http://ba-doyn.com/junk/link_test/
>
> You'll see the outlined block in the upper left. I would like the block to
> have a link, but obviously no copy in there.

Using display:block and 100% height and width, the whole div is
clickable. This would also work if there was in image instead of the
text.
http://roughtech.com/t/pcv.html

~Chetan
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Tim Arnold
>
> Sure. Here it is. http://ba-doyn.com/junk/link_test/
>
> You'll see the outlined block in the upper left. I would like the block to
> have a link, but obviously no copy in there.
>
> Thanks,
> Michael
>
>
If you put a link in that div (around the text), you can make it a block and
it should accomplish what you want:

#homeLink a{
display: block;
height: 93px;
width: 325px;
}

You will still have the text showing, which you can hide with "text-indent:
-999em;".  It will work, but is not as good as just having the image in
there, linked, with healthy "alt" text.  Google doesn't like it when you
hide text.


-- 
-
tim.arn...@gmail.com
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Michael Beaudoin

On 12/22/10 5:36 PM, Michael Beaudoin wrote:

Is it possible for a div to be a link?

I'm trying to make a logo, which is a background in a masthead, as a
link. The masthead div also contains the horizontal nav.

Thanks,
Michael




Can you post the page uri to the list?

~d



Sure. Here it is. http://ba-doyn.com/junk/link_test/

You'll see the outlined block in the upper left. I would like the  
block to have a link, but obviously no copy in there.


Thanks,
Michael
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Tim Arnold
>
> Reese said:



> Some legacy sites are not ready for HTML5 conversion. Then, I'm not
> so sure about this method even for new development. Because:
>
> Divs are block-level elements, anchor tags are line-level elements.
> Loosening the standards to permit inserting block elements inside
> of line elements seems like throwing the standards out with the
> bath water. Else, there is a leveling between the two and the
> distinction will go away completely... eventually.
>

Whether we are comfortable with this change or not, this is the HTML5
standard, and it works great.  As far as I know there is no browser that
does not support wrapping any number of block level elements in an  tag.
Standards evolve and, while this one is certainly counter to what we've
learned up to now, the fact that it is now part of the HTML5 spec kind of
makes moot the discussion over whether one "should."  Remember, that the
docype you chose is about validation, and not browser rendering.  IE5.5
(oldest browser I have on hand) will support wrapping block level elements
in an  no matter what doctype you use.  We also no longer have to self
close tags, quote attributes, or include "types" for CSS and JS.  Does that
seem different to you?  Or are you cool with those changes?  Honestly, I
bristle at the loosening of some of these standards, but wrapping block in
an  seemed like a good change to me.


>
>
> Much easier to read when reading the source code. Drop the self-
> closing img tag for HTML 4.01 and earlier.
>

This was an earlier example of standards changing.  If we accepted that
there were different rules from before HTML 4.01 to XHTML, then why not HTML
5 as well?  Perhaps because anal-retentive coders like me loveed it when
more rules were added and not so much the reverse?


>
> Reese
>
>
All this said, there are certainly parts of HTML5 that are not supported in
older browsers (new elements, input types, canvas obviously), but I disagree
that wrapping blocks in s is one of them.

Tim


-- 
-
tim.arn...@gmail.com
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Reese

At 03:24 23 12 10, Joseba Roldan wrote:


Hi,
in HTML5  you can nest divs into a  block, as you can see
hereand in the next example:

http://somewhere.com";>

Here is my fancy text


More fancy text



In this example both divs are links.



Some legacy sites are not ready for HTML5 conversion. Then, I'm not
so sure about this method even for new development. Because:

Divs are block-level elements, anchor tags are line-level elements.
Loosening the standards to permit inserting block elements inside
of line elements seems like throwing the standards out with the
bath water. Else, there is a leveling between the two and the
distinction will go away completely... eventually.

OTOH, clickable links are *content* that should be in the foreground.
So what is really wrong with simply inserting the image link inside
of the anchor tag, just like in the old days? Give it an id so that
you can position it independently of other anchor or img elements.
It's clean, concise, doesn't add convoluted markup to the html or
css or add js that might not be supported.

It's for a company logo that will be used for navigation, so:







Much easier to read when reading the source code. Drop the self-
closing img tag for HTML 4.01 and earlier.

Reese


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-23 Thread Joseba Roldan
Hi,
in HTML5  you can nest divs into a  block, as you can see
hereand in the next example:

http://somewhere.com";>

Here is my fancy text


More fancy text



In this example both divs are links.

Regards.
Joseph.



2010/12/23 John D 

>
>
> How about putting a link within a div to make a proper link?  Most websites
> these days have a masthead that is linkable and clicking on it takes you to
> the main home page.  Is this what you are asking?
>
> hth
>
>
>
> > Is it possible for a div to be a link?
> >
> > I'm trying to make a logo, which is a background in a masthead, as a
> > link. The masthead div also contains the horizontal nav.
> >
> > I was thinking of making another div, float it left and use a negative
> > margin (or a positioning attribute) to position the box over the logo
> > and have the link over the logo.
> >
> > I'm sure this is a super hack and there is a better way, if anyone
> > cares to enlighten me.
> >
>
>
> __
> css-discuss [cs...@lists.css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-22 Thread John D


How about putting a link within a div to make a proper link?  Most websites 
these days have a masthead that is linkable and clicking on it takes you to the 
main home page.  Is this what you are asking?

hth



> Is it possible for a div to be a link?
> 
> I'm trying to make a logo, which is a background in a masthead, as a  
> link. The masthead div also contains the horizontal nav.
> 
> I was thinking of making another div, float it left and use a negative  
> margin (or a positioning attribute) to position the box over the logo  
> and have the link over the logo.
> 
> I'm sure this is a super hack and there is a better way, if anyone  
> cares to enlighten me.
> 

  
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-22 Thread David Laakso

On 12/22/10 5:36 PM, Michael Beaudoin wrote:

Is it possible for a div to be a link?

I'm trying to make a logo, which is a background in a masthead, as a 
link. The masthead div also contains the horizontal nav.


Thanks,
Michael




Can you post the page uri to the list?

~d

--
http://chelseacreekstudio.com/

__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-22 Thread Kevin Rodenhofer

I shouldn't try to read when I'm sick.

Just size the link with display: block. the position it accordingly. I 
think that'll work.


On 12/22/2010 5:40 PM, Kevin Rodenhofer wrote:

Use display: block; on link, and set dimensions to fill div.

On 12/22/2010 5:36 PM, Michael Beaudoin wrote:

Is it possible for a div to be a link?

I'm trying to make a logo, which is a background in a masthead, as a 
link. The masthead div also contains the horizontal nav.


I was thinking of making another div, float it left and use a 
negative margin (or a positioning attribute) to position the box over 
the logo and have the link over the logo.


I'm sure this is a super hack and there is a better way, if anyone 
cares to enlighten me.


Thanks,
Michael
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/




__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/




__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] can a div be a link?

2010-12-22 Thread Kevin Rodenhofer

Use display: block; on link, and set dimensions to fill div.

On 12/22/2010 5:36 PM, Michael Beaudoin wrote:

Is it possible for a div to be a link?

I'm trying to make a logo, which is a background in a masthead, as a 
link. The masthead div also contains the horizontal nav.


I was thinking of making another div, float it left and use a negative 
margin (or a positioning attribute) to position the box over the logo 
and have the link over the logo.


I'm sure this is a super hack and there is a better way, if anyone 
cares to enlighten me.


Thanks,
Michael
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/




__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] can a div be a link?

2010-12-22 Thread Michael Beaudoin

Is it possible for a div to be a link?

I'm trying to make a logo, which is a background in a masthead, as a  
link. The masthead div also contains the horizontal nav.


I was thinking of making another div, float it left and use a negative  
margin (or a positioning attribute) to position the box over the logo  
and have the link over the logo.


I'm sure this is a super hack and there is a better way, if anyone  
cares to enlighten me.


Thanks,
Michael
__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/