Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

HTML and CSS used to design Home Page

abhi kanojia April 10, 2018

I have made a home page using HTML and CSS. This is a static home and its not any website as such. How can i include this page as my home page in confluence with the same look and feel.

I have the HTML add on from atlassian.

Please Help

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2018

Abhi,

You can either put the HTML and CSS you used on a page using the HTML macro as you mentioned, or you can include it in an iFrame.

You can only set a Confluence page to be a homepage so you will want to use one of those two options.

Shannon

abhi kanojia April 10, 2018

Firstly @Shannon S Thank you for the quick reply.

I have 2 separate files :  one is abc.HTML and other is abc.CSS. How do i import these files in confluence and use them to set up my home page?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2018

Abhi,

You cannot import them. You need to add the code directly into the HTML macro.

Have a look at this article for guidance:

You may be able to reference the CSS hosted externally in your HTML but I haven't personally tested that myself.

Let us know if you have any questions.

Regards,

Shannon

abhi kanojia April 10, 2018

@Shannon S It worked!!! Thanks a Lot.

Just One thing, The images i have added are not visible in confluence, what can i do for viewing images

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2018

Abhi,

How are you referencing those broken images in HTML? Are you using a full path? If you're using a local path and Confluence isn't in the same location as you are referencing, then it won't work.

In addition, if you're referring to an image on another server, you want to make sure Confluence has permission to access that image.

Shannon

abhi kanojia April 10, 2018

@Shannon SThanks!!! I added the images sharepoint and used them it worked for me...

But now it created one more issue. The image i am using i also getting set at the top of the page, i dont know the reason behind this. 

I have attached an image for reference2018-04-10_21-10-05.png

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2018

Abhi,

That's probably an issue with your code. 

I would recommend making a new question and include the code your using and the community could help determine the reason it's looking like that.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events