- Posts: 241
COMMUNITY FORUM
Related Items Alignment problem
- Peter Grube
-
Topic Author
- Offline
- Elite Member
Less
More
12 years 5 months ago #107512
by Peter Grube
Related Items Alignment problem was created by Peter Grube
Hi everyone;
I am trying to to customize the look of related items in (Item View), basically all I am trying to do, is to have the introtext display next to the image. I managed to do this but I have a small problem in that if a Item doesn't have a image the into-text still aligns as if there is an image {inline-block} I think it's called. anyway I am at my wits end trying get it to align to the left, sorry bout the confusing description here a image maybe better describe.
I have added the following CSS
I am trying to to customize the look of related items in (Item View), basically all I am trying to do, is to have the introtext display next to the image. I managed to do this but I have a small problem in that if a Item doesn't have a image the into-text still aligns as if there is an image {inline-block} I think it's called. anyway I am at my wits end trying get it to align to the left, sorry bout the confusing description here a image maybe better describe.
Attachment not found
I have added the following CSS
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
12 years 5 months ago #107513
by william white
Replied by william white on topic Re: Related Items Alignment problem
If the site is live please post a link to the page
Please Log in or Create an account to join the conversation.
- Peter Grube
-
Topic Author
- Offline
- Elite Member
Less
More
- Posts: 241
12 years 5 months ago #107514
by Peter Grube
Replied by Peter Grube on topic Re: Related Items Alignment problem
Hi William,
Thx for taking a look at this for me, I just uploaded on a test server HERE , the sites a work in progress any suggestions much appreciated.
thx in advance Pete.
Thx for taking a look at this for me, I just uploaded on a test server HERE , the sites a work in progress any suggestions much appreciated.
thx in advance Pete.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
12 years 5 months ago #107515
by william white
Replied by william white on topic Re: Related Items Alignment problem
<img class="itemRelImg" alt="" src="/" style="width:50px;height:auto;">
T his is the problem.
Need to add some php if code around the code that displays it
T his is the problem.
Need to add some php if code around the code that displays it
Please Log in or Create an account to join the conversation.
- Peter Grube
-
Topic Author
- Offline
- Elite Member
Less
More
- Posts: 241
12 years 5 months ago #107516
by Peter Grube
Replied by Peter Grube on topic Re: Related Items Alignment problem
Hi William,
Thx again for your help, I checked out the code in item.php it appears to already be surrounded by an if
Thx again for your help, I checked out the code in item.php it appears to already be surrounded by an if
Log in or Create an account to join the conversation.
- chilly_bang
-
- Offline
- Junior Member
Less
More
- Posts: 38
12 years 5 months ago #107517
by chilly_bang
Replied by chilly_bang on topic Re: Related Items Alignment problem
i would try:
Log in or Create an account to join the conversation.