[personal profile] scottishdeerhounds posting in [community profile] style_system
I know absolutely nothing about CSS, but was able to find enough info on past posts in this community to get almost everything in the layout the way I want it. I just have one problem left. Can anyone advise me as to what I need to do to shift the Journal Title, Subtitle, and Page Title in the header just a little up, so that it doesn't mask any of the image I've put in the header? I am using branchandroot's Green Summer Theme of the Module Style.

Any help will be deeply appreciated.

ETA: Firebug allowed me to isolate the proper CSS code, and I have been able to fix the header image as 100% of the header space, as long as Firefox is the Browser in use. Granted, nobody looks at my journal but me, and I use Firefox, but its the principal of the matter. Is there a way to fix this custom CSS so that it also address the size issue in IE8?

ETA 2: I have now been informed that MS is not yet up to speed, and the potential fixes for this for IE8 would require substantial revision of the header as I currently have it fixed. Ah well, at least it looks OK to hopefully a third of users out there.

Date: 2010-09-17 07:22 am (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
From: [personal profile] afuna
Hm, you can increase the height of the header a bit - the text starts from the top, while the background image starts from the bottom. So add this to your custom css box:


#header { height: 340px;}

Re: That worked for a certain value of sucess

Date: 2010-09-17 04:34 pm (UTC)
branchandroot: oak against sky (Default)
From: [personal profile] branchandroot
The trick with background images is, until very recently, they couldn't be scaled, and scaling is still not supported in anything but the very newest browsers (and not in IE at all).

I surmise that what you mostly want is for the two side-bits to always be on the sides and the middle bit to always be in the middle? There are two ways to accomplish that, one of them old and fairly foolproof but clunky, the other of them new and not supported on all browsers but spiffy.

Old: To accomplish that, you would need to divide that image into three, one image to a part, with a little green margin as is easy to get. Then use custom css to put one in each layer of the header boxes (#header, #header .inner, and probably #pagetitle, applying height only to #pagetitle), aligned to right, center and left respectively. That will be fluid and keep the proper alignment no matter what size the screen is. It still won't scale, the images will always be the same size, but they'll be right, left and centered properly.

The spiffy new, not wholly supported way: This also needs custom css, but I believe all you need to put in is "#header {background-size: 100% auto;}". That really will scale your image. Be aware that this will change the height also, so you may get overlap again on larger monitors. If you don't actually want scaling, just alignment, you can also chop the image in three and assign all three of them to #header (eg background-image: url(one.jpg), url(two.jpg), url(three.jpg), and similarly list the other values like alignment out). Again, this will only work on the most recent Firefox, Safari, Opera, and Chrome. IE is, as usual, lagging on CSS compliance.

Profile

Dreamwidth style system discussion

July 2025

S M T W T F S
  123 45
6789101112
13141516171819
20212223242526
2728293031  

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 27th, 2025 02:19 pm
Powered by Dreamwidth Studios