Solved

Drupal css header

Posted on 2010-09-13
10
629 Views
Last Modified: 2012-05-10
We are thinking about switching our website over to Drupal. I have found a theme that I would like to use but the original header image is to small, so I have uplpaded the image from our current site but the way the css is set up the display and menu bars don't display correctly.

I'm guessing it has some thing to do with the css. I don't really know that much about css as I'm still learning. Is there a way to easily fix the header problem??

http://qgprocurement.com/drupal/

I would like the image along the top of the page with the black menu bar under it. I used to using tables and HTML
0
Comment
Question by:QGolden
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 2
10 Comments
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33667472
CSS is the future and isn't going away, so dedicating some time to studying it will go very far.

First check the theme's settings to see if there is an option there.

Easiest solution, open up paint/photoshop/gimp and change/resize your logo.

The CSS rules are a little tricky to change the header's height. Open up each of themes css files and look for documentation.
0
 

Expert Comment

by:web2developer
ID: 33669433
Size of your current logo image is 844px × 216px. So as per  dimension of your logo replace css code of your Pixture_reloaded theme's layout.css with following attached code (Code SnippetSnippet ID=1040747)-



#header {
  margin: 0 0 15px 0;
  padding: 0;
  height: 256px;
}
#logo {
  margin: 0 10px 0 0;
  padding: 0;
  height: 244px;
  float: left;
  overflow: hidden;
}
#head-elements {
position:absolute;
left:100px;
top:20px;
z-index:1;
}

Open in new window

0
 

Author Comment

by:QGolden
ID: 33670099
web2developer:
The above code displays the full image but it messes up the rest of the page. The black header menu bar is hidden behind the image, the menu options seem to be in the right place but can't really see them, the page contents is shifted to the right of the page.

Thomas4019
I was hoping to use the same image as our current site but doesn't look likes that possible. I am planning to learn css very soon. css and Drupal seems very complex as it uses more than 1 style sheet, do most site use multipliable sheets ??
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 17

Expert Comment

by:Thomas4019
ID: 33673628
I am sure it's possible to do what you want if you know enough CSS. Modifying an existing theme can be very complicated, as you said. Some Drupal themes use just 1-3 stylesheets while others go overboard with way to many around 10-20. It's normal for a site to have 1-5 CSS sheets. Drupal has an item to combine CSS stylesheets before sending them to the client, called "CSS Aggregation". This is a must for performance.

Tools like firebug help when working with complicated themes. GetFirebug.com
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33673656
If you're new to Drupal picking an good easy starting theme is essential. Maybe look for a theme that is more accommodating with large banners.

Really, I think you could just shrink you banner by 150% and then it would fit well.
0
 

Author Comment

by:QGolden
ID: 33673792
Thanks. I have checked out other themes and on some you can set the logo size so that it fits but I'm finding it hard to center the image, it's either left or right no middle.

I'm having a hard time getting my head around css and Drupal but I'll keep at it.
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 33673845
Centering things should be easy with CSS.

Just keep studying, it will make perfect sense soon enough.
#id-of-header-element {
   text-align:center;
}

Open in new window

0
 

Expert Comment

by:web2developer
ID: 33674448
@QGolden: try to alter my code with this
#header {
  margin: 0 0 15px 0;
  padding: 0;
  height: 256px;
}
#logo {
  margin: 0 10px 0 0;
  padding: 0;
  height: 244px;
  float: left;
  overflow: hidden;
}
#head-elements {
position:absolute;
left:100px;
top:244px;
z-index:1;
}

Open in new window

0
 

Accepted Solution

by:
QGolden earned 0 total points
ID: 33679775
Unfortunately that code didn't seem to work either. I am looking for a new theme that will better suit the logo header as my css knowledge is limited and editing the theme at this time is to time consuming.

Thanks for the help and suggestion
home-page.png
0
 

Author Closing Comment

by:QGolden
ID: 36482971
Used a different theme
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
White space in figure / img 4 36
Can anyone help me find this preloader? 51 68
jQuery menu problem in an older browser 6 33
Slow Down an Animation 3 29
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question