Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Template formatting, text and images
Fiendofdesign
Posted on 22 Feb 2010, 17:23:05

Access: Member
Total Posts: 5
Joined: 2010-01-13

Is there a way to set up a template that will always show an image in a certain spot. for example, always have the image on the left and text on the right.

It would be simple if the images were separate tags like {title}, {story}, {img}. Then throw them in div tags and format them with css.
#1937
Chris
Posted on 22 Feb 2010, 17:29:27

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Unfortunately not. Adding a {img} tag to the templates wouldn't really work as it'd prevent users from placing images where they want them to show in the article. This would also lead to more problems if a user was to add more than one image per article.

One way around this would be to create a template and place the news within a div element that has a unique ID, then target that element and the images within it using a bit of CSS.

Code:
#elemID img {
    float: left;
}
#1938
Network-13.com © 2013