The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> What Do I Have To Change?
dsmith916
post Sep 30 2013, 01:07 PM
Post #1


Advanced Member
****

Group: Members
Posts: 162
Joined: 5-December 12
Member No.: 18,203



http://blog.duncansphotos.com/2012/07/blog-post_31.html

This should be an easy one for someone to knock out of the park... I can't get the image in this post to be centered on my blog. I want images this size to be equal on the left and the right, not sticking way out on the right like it is now. What do I need to change in my code to get this image to be centered? I'm also not sure why the lines in the nav bar do not span the page.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 1 2013, 04:36 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Not that easy. For this specific image a left margin of -400px would do it. Of course the image will then cover the left side bar on most screens. I can't think if a broadbrush way to this so it will work with any and all images.

Basically, it's hard to center something that's 1600 pixels wide inside a much more narrow container.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
dsmith916
post Oct 2 2013, 10:08 PM
Post #3


Advanced Member
****

Group: Members
Posts: 162
Joined: 5-December 12
Member No.: 18,203



QUOTE(pandy @ Oct 1 2013, 04:36 AM) *

Not that easy. For this specific image a left margin of -400px would do it. Of course the image will then cover the left side bar on most screens. I can't think if a broadbrush way to this so it will work with any and all images.

Basically, it's hard to center something that's 1600 pixels wide inside a much more narrow container.


well how do I change the size of the container? which line of code is that?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Oct 3 2013, 08:07 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I just stumbled upon http://www.cssplay.co.uk/menu/scroller.html which might be of help to you.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 09:41 PM