Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Tanya S on
Hi
I am using the Bluemarine Theme and have managed to change some things to how I want it, but would really like my site to not fit the whole of the screen but to be centralised and smaller e.g 800 pixels width. Is there anyway I can change this in the Bluemarine theme?
If I can't is there any themes that are a bit smaller in width and don't fit the page?
Thanks
Comments
Open the style.css file and
Open the style.css file and at the top of the file you find
add max-width to it like this
and the page will not become wider that 800 pixels. Unfortunately Internet Explorer 6 don't understand max-width (IE 7 will fix this) so we need a hack like this
This will lock the width to 800 pixels for IE6 users. "* html" makes standard compliant browsers ignore it.
what about the sidebars
Is it possible to do a similar thing with the bluemarine sidebars and set a max width for them as a % of the whole screen
tkgafs
Thanks
Thanks thats worked perfectly
Anomoly noticed in Firefox
This worked for me in Bluemarine, but an anomoly noticed with Firefox.
In addition to fixing the width, I changed margin to: margin: auto; (to center the theme)
In IE, the theme works flawlessly with no glitches. However, in Firefox when I switch between menu items, the theme makes a slight shift. Sometimes shift to the left, then back to right as I view different pages. Doesn't do this in IE.
Any ideas?
Here is the style.css part that I edited to fix width to 1000 & center:
I just notice the right scroll
I now see what is happening in Firefox. When the page does not need to be scrolled, the right scroll bar disappears and makes the theme rock back to the right. Of course, the opposite happens on a longer page that requires scrolling.
Is this normal in Firefox? I noticed that IE holds the scrollbar position in all pageviews; thereby maintaining the site position.