Can anyone help me? User profiles appear way down a blank page at my new site tbites.com - and it happens with other things too like news aggregator. How do I edit the theme to stop this?

Comments

robert castelo’s picture

This is the best place to ask these kind of questions, so here goes....

Problem is caused by drupal.css (line 413):

.profile {
clear: both;
margin: 1em 0 1em 0;
}

You can overide that in your theme very easily, just add this to your theme's style.css file:

.profile {
clear: none;
}

By the way, I recognise most of the names on that site. How many of you are coming to the Bricking It? event?

Cortext Communications
Drupal Themes & Modules

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

mikegb’s picture

Fantastic, thanks - and will this work for other elements - for instance I have the same problem when I go to edit a story (the editing functions appear way down the page). I will check out Bricking It, thanks!

robert castelo’s picture

Yes, should work for all other elements.

My advice is to use Firfox and install the Firebug extension, so you can see more easily what the css of the element is.

Cortext Communications
Drupal Themes & Modules

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

mikegb’s picture

Forgot to ask, where do I insert "clear: none;" to make the 'edit node' appear at the top of the page? Sorry!

Mike

mbites.com

mikegb’s picture

cheers
Mike

robert castelo’s picture

You'll have to hunt for it.

Try the FireFox tip above, with Firebug installed you can just click on the problem area and it will show you all the css for that element. Find the element that has the clear and overide it in style.css with a clear: none

Cortext Communications
Drupal Themes & Modules

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----