|
From: Jonathan N. Little on 21 Apr 2008 11:09 BootNic wrote: > Block element displayed inline add zoom to trigger haslayout mayhaps > result in inline-block behavior for IE. > > <!--[if IE]> > <style type="text/css"> > h1 { > display:inline; > zoom:1; > } > </style> > <![endif]--> > A code fork is a code fork....I still stand by my comment...I do not have a rosy memory of the browser-war 90's. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
From: shapper on 21 Apr 2008 12:26 On Apr 21, 4:09 pm, "Jonathan N. Little" <lws4...(a)central.net> wrote: > BootNic wrote: > > Block element displayed inline add zoom to trigger haslayout mayhaps > > result in inline-block behavior for IE. > > > <!--[if IE]> > > <style type="text/css"> > > h1 { > > display:inline; > > zoom:1; > > } > > </style> > > <![endif]--> > > A code fork is a code fork....I still stand by my comment...I do not > have a rosy memory of the browser-war 90's. > > -- > Take care, > > Jonathan > ------------------- > LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com Thank you all ... A little while I tried the span tag inside the h1 tag but I was trying to figure if there was another way. I was trying to avoid adding one more tag. I see using span tags inside other tags very often for solving a few issues like in menus that uses lists. For example: <ul> <li> <a id="singup" href="/signup/"> <span> Sign-Up </span> </a> </li> <li> <a id="tour" href="/tour/workflow"> <span> Tour </span> </a> </li> </ul> About the Foreground color I do set it up. I was just placing the code directly related to my problem. Thank You, Miguel
From: Jonathan N. Little on 21 Apr 2008 13:26 shapper wrote: > I see using span tags inside other tags very often for solving a few > issues like in menus that uses lists. For example: > > <ul> > <li> > <a id="singup" href="/signup/"> > <span> > Sign-Up > </span> > </a> > </li> > <li> > <a id="tour" href="/tour/workflow"> > <span> > Tour > </span> > </a> > </li> > </ul> What issue does the addition of a span do for you here? -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
From: Beauregard T. Shagnasty on 21 Apr 2008 14:06 shapper wrote: > About the Foreground color I do set it up. I was just placing the code > directly related to my problem. ...and therein lies the reason everyone asks for a URL, instead of code fragments. When people just post bits of code, there is often other necessary bits incorrect or unmentioned that could be the reason for the problem. Like your: <ul> <li> <a id="singup" href="/signup/"> <span> Sign-Up </span> </a> .... 1. You could assign CSS to: li a { } and not need a <span> 2. Do you *really* have id="singup" misspelled in your test page? -- -bts -Friends don't let friends drive Vista
From: Jukka K. Korpela on 21 Apr 2008 15:07 Scripsit Jonathan N. Little: > h1 span{ color: white; background-color: black; } Better still: h1 span{ color: white; background: black; } Just in case some odd style sheet sets a (possibly white) background image for the element. Very unlikely, but why not take the precaution, especially when it makes the rule shorter? Moreover, adding something like padding: 0 0.2em would probably be a good idea. You don't want the heading text to extend to the very edge of the background area but leave a little padding there. -- Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: Chinese Stainless Steel Stone Ring KR037 Next: Font size at Wikipedia |