• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

fixed width style / image width for "Notice" ?

erich37

Well-known member
#1
I do have a "Fixed Width Style" at my Forum with the following width at "Style Properties > General > Page Width Controller":

Code:
width: 990px;
margin: 0 auto;
Now I would like to create "Notices" for a specific Foru-Node. The "Notice" should be just ONE "Notice", so it is still and is not moving (as it's only 1 Notice).
I would like to put just an image (photo) into the "Notice" - just 1 simple image.

Question1:
how do I figure out the width of the "Notice content area", so that I know what kind of width my image should have? I have checked the Notices-code with FireBug, but I can not find anywhere the width of my Notice.

Question2:
what would be the code to place just one simple image into a "Notice" ?


Appreciate your help!
 

Jake Bunce

XenForo moderator
Staff member
#2
1) I would measure it. Take a screenshot and open it in a graphics program. I can do this if you post the URL to your forum.

2) You can use a html image tag:

Code:
<img src="path/to/image.gif" />
 

erich37

Well-known member
#4
Code:
<img src="/path/to/image.jpg" style="display:block; width:100%" />
the code above and disabling the Option "Add default notice text styling" and it works just fine :)