1

First time ever had this problem with views not rendering images to horizontal align in grid.

I have the Views module version 7.x-3.5 installed on Drupal 7.18.

I actually realized it is aligning for immediate view of links, but not within the view after clicking a link. How do I make all images horizontal align?

  • 1
    clear you cache – monymirza Jan 9 '13 at 6:06
  • have done still not working – user12564 Jan 9 '13 at 6:30
2

You can horizontally align things with CSS

e.g

.container{
  text-align:center;
}

You can also align using a margin or padding.

In your case:

.view-galleryofimages .views-view-grid {
  margin:0 auto;
}

Should suffice.

See this summary for more info: CSS Horizontal Align

  • Thanks but where do I place that css code for views? – user12564 Jan 9 '13 at 1:11
  • 1
    The CSS will depend on your HTML markup. You can add it to any of your theme css files, e.g: style.css in your theme dir – David Thomas Jan 9 '13 at 1:25
  • Trouble is all of this is in the linked view created by a module so I cannot locate the specific html. – user12564 Jan 9 '13 at 1:38
  • I mean I can easily edit my themes css but cannot find where to create a div or class for content added in module. – user12564 Jan 9 '13 at 1:39
  • It doesn't matter where the HTML comes from, presumably you can see it in your browser? If so, use firebug or webkit right-click > "Inspect Element" to study the HTML markup. – David Thomas Jan 9 '13 at 1:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.