SFB Posted May 8, 2006 Share Posted May 8, 2006 I have been making the necessary changes to make my pages into xhtml. one thing i have found is that the browsers change how they read a page by the doctype. anyways now the <div> tag has a line break after it like the <p> did in html. this is happening for me in IE, Opera, and firefox it may be more browsers but those are all the ones i have. I was wondering if there was a way to remove the line break that is automatically added. or i could settle with another tag that does the same thing without the line break. i am using css to change the style of some words and now when switching to xhtml i have line breaks in places they are not needed. Link to comment Share on other sites More sharing options...
scott100 Posted May 8, 2006 Share Posted May 8, 2006 No <div style="display:inline">Line </div>Break or the span tag How <span>Are </span>You Link to comment Share on other sites More sharing options...
SFB Posted May 8, 2006 Author Share Posted May 8, 2006 thanks, i will use the div and add that to the style sheet that way it will be less work for me! Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 10, 2006 Share Posted May 10, 2006 Nowadays, divs are block elements in xhtml that is why Link to comment Share on other sites More sharing options...
justsomeguy Posted May 10, 2006 Share Posted May 10, 2006 Haven't divs always been block elements? I thought divs and spans were essentially the same thing, except spans are inline and divs are block. If that's not true, when did divs become block? Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 10, 2006 Share Posted May 10, 2006 I don't know, just being precautiously Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now