Drupal Header

4 posts / 0 new
Last post
Offline
Last seen: 2 years 11 months ago
Joined: 06/16/2010 - 18:26
Drupal Header

Hi,I used the code you sent me but its not working correctly. The image appears as an x and the words my page still shows up. Not only that, but it only appears on one page. Portfolio. http://webvideovision.com/Portfolio

1
2
3
<div class="Header-jpeg">
<a href="http://webvideovision.com"><img src="&lt;?php print base_path() . path_to_theme() . '/images/header.jpg'; ?&gt;" alt="">My Page</a>
</div>

CSS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
div.Header-jpeg{
position: absolute;
z-index:-1;
top: 0;
left: 0;
width: 920px;
height: 125px;
background-image: url('images/Header.jpg');
background-repeat: no-repeat;
background-position: center center;
 
}
div.Header-jpeg a{
text-indent: -100em;
overflow: hidden;
display:block;
width: 920px;
height: 125px;
}
philipnorton42's picture
Offline
Last seen: 6 hours 6 min ago
Joined: 04/04/2010 - 23:03

I notice that you minify the css and js files which mean that any changes won't be available straight away. Have you cleared the cache since you made those changes?

Offline
Last seen: 2 years 11 months ago
Joined: 06/16/2010 - 18:26

thanks for replying. I can send the code to your email if you like. Do you have a code feature on these forums? I didn't know how to post it.


philipnorton42's picture
Offline
Last seen: 6 hours 6 min ago
Joined: 04/04/2010 - 23:03
I am currently experimenting with different ways to integrate the syntaxhighlighter into the forums along with some form of wysiwyg display. For the time being the wysiwyg is turned off so you can post code using something like the following
1
2
3
&#123;syntaxhighlighter brush:plain\&#125;
// code
&#123;/syntaxhighlighter\&#125;
There are a load of different brushes available, but you will probably want to use things like plain, php, html and css.

Add new comment

Plain text

  • You can enable syntax highlighting of source code with the following tags: <pre>, <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <code>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.