blabla, html question. (yes, whenever an exam is getting nearer i just have to play around with my layout). with the generator layout, is there any universal way to make the content table, you know with your entries and stuff, exactly as wide as the header picture, always, no matter which browser or screen resolution or whatever it is viewed in?
(
Read more... )
body {
margin-top: 200px !important;
background-image: url(http://pics.livejournal.com/isilwen/pic/000kp9dw) !important;
background-repeat: no-repeat !important;
background-attachment: scroll !important;
background-position: 50% 30px !important;
}
/* change these numbers, must add up to 100%*/
table {
width: 700px;
margin-left: *;
margin-right: *;
}
/* the width value used here should be the same as the width value you've used above, minus the amount you want the entries indented (in this example, 5%), the margin-left and margin-right values MUST be the SAME as above.*/
div table {
width: 700px;
margin-left: *;
margin-right: *;
}
/* do NOT change these numbers */
table table {
width: 100%;
margin:0;
}
table table table {
width: auto;
}
This is the override text of ringcon, and I chose it because it's a similar layout structure as your journal. The tricky parts are those that I bolded: the background-position 50% centers your background picture, no matter what happens, and the width: 700px is where you have to enter the width of your top picture, then the journal content will stay the same width, too. If you enter a * for margin-left and margin-right, that's a "wildcard", telling the browser to display half of the empty space on the left, the other half on the right side of the journal content, so it's centered.
I hope I got all of this right, if it doesn't work for some reason, let me know ;)
Reply
Reply
For example, I think at the moment your margin-top is not existant, because the tables start up there, not under your picture ;)
Reply
In IE, your layout looks like - I think - you want it to look. But in firefox, it looks totally different. O_o
Reply
Reply
/* change these numbers, must add up to 95% or less*/
table {
width: 450px;
margin-left: *;
margin-right: *;
}
/* do NOT change these numbers */
table table {
width: 100%;
}
table table table {
width: auto;
}
body {
margin-top: 348px !important;
background-image: url(http://img.photobucket.com/albums/v295/sternentochter/gras.jpg) !important;
background-repeat: no-repeat !important;
background-attachment: scroll !important;
background-position: 50% 5px !important;
}
Reply
Reply
Reply
Reply
:D That is soooo sweet of you! *giggles*
A picture of grass lying on the grass is a cool thing to find. :)
Reply
Leave a comment