Results 1 to 15 of 22
Thread: CSS - Space between divs
-
January 13th, 2005, 12:56 AM #1
CSS - Space between divs
Here's a silly question. How do you eliminate the space between sections that have different div id's?
-
January 13th, 2005, 01:14 AM #2
Do you have the margins set to 0px?
-
January 13th, 2005, 01:54 AM #3
Yep
-
January 13th, 2005, 02:27 AM #41,716m'ifreann mo parthas
postscould u show us the code ?
-
January 13th, 2005, 10:06 AM #5
If you are viewing it in IE, sometimes IE always needs to have padding: 0px; margin 0px;
Otherwise, it's in your XHTML code. Try to get us some links so we can better hlep you.
-
January 13th, 2005, 08:35 PM #6
http://beta.morsedesigns.com/index2.htm
CSS is valid, but XHTML is not.
Sidenote- Those of you using IE, are the png border drop shadows transparent?
-
January 13th, 2005, 09:27 PM #7
-
January 13th, 2005, 09:40 PM #8
Confused. Everything is divs, as such:
HTML Code:<div id="blabla">content</div>
-
January 13th, 2005, 09:44 PM #9
-
January 13th, 2005, 10:23 PM #10
I was going to ask about that, but the most pressing issue is between the "header" div and the "content" div, as well as between the "headerbody" and the "centerbody". Those gaps in the blue...
-
January 13th, 2005, 10:27 PM #11
-
January 13th, 2005, 10:43 PM #12
But I need those tags to set the background images on those sections... The blue stuff. I can't put the text and the image in the same div because i have to put a left margin for the text...
-
January 13th, 2005, 10:49 PM #13
Listen, the problem is the header tags. As I said before you need to either
A) REPLACE the header tags with something like div or span tags and style them to format your text comparatively
or
B) SET your header tags to have a display type of inline, i.e.
I suggest A. Just go through your HTML and replace your h1, h2 and other h tags with div or spans and style them as needed. Easy, problem solved.HTML Code:h1, h2, h3 { display:inline; }
This isnt changing your images (they are added through the other divs) and besides, you'd be replacing them with "better" tags so all you're losing is the awkward line jump.
p.s. the header tags and that pointless paragraph (p) tag you have in there too. As with when I was comparing header tags to p tags; both supply the extra line in their layout.
-
January 13th, 2005, 11:20 PM #14
Yay it worked! I love you sen!
-
January 13th, 2005, 11:22 PM #15
Similar Threads
-
External txt with external css
By Webfoley in forum Flash IDEReplies: 4Last Post: March 2nd, 2005, 04:04 AM -
Layers Help
By shotsy247 in forum Web (HTML5, CSS, JavaScript)Replies: 12Last Post: December 12th, 2004, 08:01 PM -
CSS Navigation Bar: IE adding Space.
By as_clark20 in forum Web (HTML5, CSS, JavaScript)Replies: 7Last Post: November 18th, 2004, 08:55 PM -
CSS Tip
By sideffect8 in forum Flash IDEReplies: 0Last Post: July 22nd, 2004, 02:50 PM

Reply With Quote




Bookmarks