![]() |
Mysterious blank space?
Hey,
I'm having an issue where extra space is added to my background image. http://i261.photobucket.com/albums/i...05/example.jpg I don't know why, I did not set a margin or padding to the lower part. HTML: Code:
<div class="pollframe">Code:
#misc .pollframeI removed the height in .content and this was the out come: http://i261.photobucket.com/albums/i...andez305/2.jpg Anyone, please? :) |
Any chance you could bundle all the images, CSS and HTML into an archive so that we can have a play?
|
1 Attachment(s)
Sure
I forgot to put the images in a folder 'images' oopsy |
Here, I fixed it for you:
Code:
#misc |
small thing..
margin: 0px 0px 0px 0px; can just be margin:0; and 0 is zero in any units so you don't need the px anywhere its just 0. |
I just realized this looks good in FF but not IE.
In IE, if you adjust it from -25 to -14 it looks good, but then it breaks in FF.... Can the browser wars be over with already!!!? |
Quote:
|
Thanks guys. I'm still having a small issue with the frame image. It passes over the bottom part of the image by about 2-4px. Not sure why
|
Quote:
You may want to redo your CSS and DIV tags unless you need to do it exactly the way you zipped it up for us. I'll try to show you what I mean.... |
And what if you do "position: absolute" to the div that contains the image for the bottom corners and stick it to the bottom.
|
1 Attachment(s)
I decided to give it a re-write as I figured it'd be quicker to do that than to try and rectify the problem. I hope this looks beautiful in all browsers!
|
Quote:
That looks great in both IE and FF... EDIT: I see that you went with giving all the DIV tags ID's instead of using "class=", is there any real difference between the two? Now that I know a little more JS, I know you can do things now with the ID attribute, but is that the only difference? |
Offtopic: The id and class attributes are two entirely different things. The former gives the element a unique identifier (it ain't an id if there are more than one of it!). The latter denotes that the element belongs to one or more classification groups. An element can have multiple classes (eg. it can be both 'fat' and 'round', to give a useless example, using class="fat round"). |
Quote:
But you can give the DIV ID's all the things that you can with a class in one shot right? It's kinda like double dipping? And I suppose if you then want to give it more properties from other classes then you can use "class="..? Would you say that's correct? |
works great wild honey thanks
|
I know i'm a bit late here heh but anyways thought i should add some lines. Preview images doesn't work so hopefully i'm on the right issue :D
Anyways images are inline elements, and they also take note from line-height therefore resetting the line-height would have sorted it out. I personaly are against using images in building the design so i would go with a markup more like this, if you have to wrap it in a wrapper/container instead(depending on images) make use of the block elements that already is there, like the form tag! Code:
<!DOCTYPE html>Edit: Must of had a blackout :) Code:
<!DOCTYPE html> |
| All times are GMT. The time now is 01:03 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0