google_color_url = "ff6600"; There may be something else going on here. I need to know how to style just the inside span, which I assume requires a different selection with CSS. While using W3Schools, you agree to have read and accepted our. No linebreak is created when a span is declared. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. Spans are very similar to divisions except they are an inline element versus a block level element. .separator span will only style the innermost span. google_color_bg = "FFFFFF"; .separator>span {}. To select elements with a specific class, write a period (.) Powered by Discourse, best viewed with JavaScript enabled. .separator span:first-child {} will only target spans in .separators that are the FIRST ELEMENT (not the first of type, as that a different pseudo class ) within their respective container. //--> Turns out for some weird reason the menu had empty spans. .separator span:first-child {} will only target spans in .separators that are the FIRST ELEMENT (not the first of type, as that a different pseudo class ) within their respective container. google_ad_client = "pub-7891292310029227"; How to select a span inside a span with CSS. (look at Example 1 below). can also refer to more than one class (look at Example 2 below). Chapter 6: CSS Spans. Examples might be simplified to improve reading and learning. For a more detailed explaination of XHTML please visit W3Schools,