Tom Livingston wrote: > On Thu, Feb 23, 2017 at 9:43 AM, Crest Christopher > <crestchristop...@gmail.com> wrote: >> I'm strictly having to use inline style sheets. My goal is to reposition >> the tag I'm about to mention vertically on the page. >> >> I have a <h2> nested within a <span>, when I try to style the <h2> tag I >> can't reposition the contents within the tag using margins. When I >> attempt to style the the <span> using margins I also can't reposition >> the contents within, although I don't want to style the <span> since >> I'll be styling everything within the <span> as well and I strictly want >> to only reposition the <h2> tag ? > > The span is an inline element which doesn't respond to margin styles. > add a declaration for the span to be inline-block (or block) and then > try your positioning. Do you both believe that an <H2> element can legitimately be a child of a <SPAN> element ? If so, are you able to cite any W3C specification that permits such a nest ?
Philip Taylor ______________________________________________________________________ css-discuss [css-d@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/