I can get everything to look nice and proper for Firefox, Chrome and Safari but IE is throwing a fit and not playing along. It puts an imaginary box at the top of the page for one of my divs and throws off alignment for everything. I'm a big coding newb and could use some help.
I want an image to auto adjust with browser size and have a form in the middle of that image(or anywhere inside the image) It works great in everything but IE
Good morning whitetree,
You should check your code with the validators, one for HTML and one for CSS can be found in my signature line. They will help you a LOT.
Not sure how this will work with your image but it does show how it can be done with a lot less code (I did not change anything on your form so it's still invalid) -
Thanks for the assistance, it is much appreciated. This code looks much better but it's not quite what I'm after.
The form box should sit in the middle of the image and I need to be able to control the positioning of the form box because it will move around depending on what the designers come up with for that specific one.
Thanks for the assistance, it is much appreciated. This code looks much better but it's not quite what I'm after.
The form box should sit in the middle of the image and I need to be able to control the positioning of the form box because it will move around depending on what the designers come up with for that specific one.
I sent you a PM with example pictures.
Using that code I posted, it would be easiest to adjust the forms top margin to place it where you like. This bit highlighted in red -
That works good, for IE, but not for FireFox or Chrome. For Chrome and FF I have to add a margin-left value which works well for FF and Chrome but throws off IE too far to the right. Also, for it to get the form table to appear above the image I had to put a position: fixed into the content div and in Firefox the form is not a relative position, even my adding a relative position value to the CSS it stays put in FF but not in IE...
So it seems like this works for everything but IE, or IE but nothing else....
You've made enough changes to your code ... you fixed those errors with the validator, didn't you? I think we'll need to see the current version you're working with.
As always, a link to the test site is best.
I did validate and it came up error free but thats not the problem. I even tried putting the form Div inside a new div for the image that I want but it is still asqeue and not relative to anything.
I did validate and it came up error free but thats not the problem. I even tried putting the form Div inside a new div for the image that I want but it is still asqeue and not relative to anything.
That version you link to does have the image in the same div as the form but that's not how you put the image behind the form. You should look at how to use the css background property.
boom that was exactly what i was looking for! Thanks for all your help, I'm a big CSS newb and dont really know what I'm doing for it at all.
The next thing I want to learn is how to change the look of the input boxes by adding an image to the box and change the look of the Login button as well.