留言板
CSS for a single Portlet
Hey guys,
i got a little problem with adding css to a portlet.
i take a simple web contetnt portlet and add my css code under the look and feel option.
then i add my html and javascript code and nothing happens.
when i try the javascript code alone it works and everything is ok. when i test the css alone on my pc everything is ok and works.
so could u pls help me with that?
thanks in advance
i got a little problem with adding css to a portlet.
i take a simple web contetnt portlet and add my css code under the look and feel option.
then i add my html and javascript code and nothing happens.
when i try the javascript code alone it works and everything is ok. when i test the css alone on my pc everything is ok and works.
so could u pls help me with that?
thanks in advance
Where did you add add my html and javascript code?
What did you add?
i added some code html and javascript. the code works i know it.
how can i add my css in there? for example this:
#container1
height: 100%;
width: 50%;
position: center;
background-color: red;
and in the javascript i define the text that should be at in this red box.
how can i add my css in there? for example this:
#container1
height: 100%;
width: 50%;
position: center;
background-color: red;
and in the javascript i define the text that should be at in this red box.
Test this code in your web content portlet.
<title>My first styled page</title>
<style type="text/css">
body {
color: purple;
background-color: #d8da3d }
</style>
<!-- Site navigation menu -->
<ul class="navbar">
<li><a href="index.html">Home page</a>
</li><li><a href="musings.html">Musings</a>
</li><li><a href="town.html">My town</a>
</li><li><a href="links.html">Links</a>
</li></ul>
<!-- Main content -->
<h1>My first styled page</h1>
<p>Welcome to my styled page!
</p><p>It lacks images, but at least it has style.
And it has links, even if they don't go
anywhere…
</p><p>There should be more here, but I don't know
what yet.
<!-- Sign and date the page, it's only polite! -->
</p><address>Made 5 April 2004<br>
by myself.</address>