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 __

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 chetancra...@gmail.com 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

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

2010-12-24 Thread Chetan Crasta
Or why not set an a to display block and have the logo be the bg of that a 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

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 chetancra...@gmail.com wrote: Or why not set an a to display block and have the logo be the bg of that a instead of the div? Wouldn't that mess up the nav in the div then? It is best to have the logo

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

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.

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

2010-12-23 Thread Joseba Roldan
Hi, in HTML5 you can nest divs into a a/a block, as you can see herehttp://www.w3schools.com/html5/tag_a.aspand in the next example: a href=http://somewhere.com; div id=myDiv pHere is my fancy text/p /div div id=anotherDiv pMore fancy text/p /div /a In this example both divs are links.

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 a/a block, as you can see herehttp://www.w3schools.com/html5/tag_a.aspand in the next example: a href=http://somewhere.com; div id=myDiv pHere is my fancy text/p /div div id=anotherDiv pMore fancy text/p /div /a In

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

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.

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

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,

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

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

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 mich...@ba-doyn.com wrote: Is it possible for a div to be a link?

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

2010-12-23 Thread Tom Livingston
Or why not set an a to display block and have the logo be the bg of that a instead of the div? On Wed, Dec 22, 2010 at 5:36 PM, Michael Beaudoin mich...@ba-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

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

2010-12-23 Thread Michael Beaudoin
: Tom Livingston tom...@gmail.com To: Michael Beaudoin mich...@ba-doyn.com Cc: css-d@lists.css-discuss.org Subject: Re: [css-d] can a div be a link? Message-ID: aanlkti=mr8runf7ejt6yk8rykg4aqwyq5jvd1gcpy...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 Or why not set

[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

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

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

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

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