- This topic is empty.
-
AuthorPosts
-
November 24, 2014 at 7:47 pm #189135motion2082Participant
Hey guys,
I’m new here so please be nice.
I am working on converting a html website to a joomla cms.
The html version is at http://tinyurl.com/kyfsjpq
and here is what I have created so far http://tinyurl.com/p2le55u
Can anyone please help me with a custom.css override for the Menu on the left with the light green background color?
November 24, 2014 at 9:39 pm #189137robetnobeParticipantyou just add in the code css
.nav-stacked > li > a {
margin: 0px 10px;
}
.nav-stacked > li.active > a {
background: url(‘menu3.jpg’) no-repeat scroll right center #BCD4C7
}please try it first
and
header for joomla
add code css custom
header.header img {
width:100% !important;
}You can teach me to be able to convert html to joomla
November 25, 2014 at 1:37 am #189143motion2082ParticipantHi Robert,
Thank you for your quick reply.
That code fix the padding issue and also makes the button active which is good.
It’s not displaying the (menu3.jpg) though :(
Having a play around now :)
I’m still learning with Joomla but I can definitely share my trial and error experiences!
November 25, 2014 at 5:47 am #189157motion2082ParticipantOk I think I stuffed it good now, please help
November 25, 2014 at 6:09 am #189158Paulie_DMemberI’d suggest you create a smaller version in Codepen we can play with as your developments site is a moving target.
Frankly, I think the issue was your background images on your list items / links.
There’s nothing in the ‘proper’ site nav that can’t be done without them.
November 25, 2014 at 6:23 am #189159motion2082ParticipantI’m not sure how to do that as my testing site is Joomla not HTML/CSS only so won’t play nice in code pen.
November 25, 2014 at 6:54 am #189162Paulie_DMemberSimply use your output HTML. in fact, my Codepen does use your HTML
November 25, 2014 at 8:13 pm #189229robetnobeParticipantyou are wrong in writing string should look like this back
.nav-stacked > li.active > a {
background:url('menu3.jpg') no-repeat scroll right center #BCD4C7;
}
motion you can teach me how to convert html to joomlaNovember 25, 2014 at 8:23 pm #189231motion2082ParticipantRobert you are amazing!!!
That fixed the menu :)
November 25, 2014 at 8:24 pm #189232robetnobeParticipantmotion
you could give an example tutorial convert html to joomlaNovember 25, 2014 at 8:30 pm #189233motion2082ParticipantRobetnobe
Step 1) Install Joomla on your webserver
Step 2) Navigate to protostar template css folder @ www/templates/protostar/css
Step 3) Create a custom.css file
Step 4) Add this line to the index.php file
// Add Stylesheets $doc->addStyleSheet('templates/' . $this->template . '/css/custom.css');
Step 5) Copy code you want to modify from templates.css into custom.css
Step 6) Enjoy
November 25, 2014 at 8:32 pm #189234robetnobeParticipantok thanks motion :)
November 25, 2014 at 8:39 pm #189236motion2082ParticipantThis might be helpful also:
http://tinyurl.com/ozrlweuYou can find a free version here:
http://tinyurl.com/om668dnNovember 25, 2014 at 8:45 pm #189237robetnobeParticipantThanks motion :)
November 25, 2014 at 9:10 pm #189239motion2082ParticipantYou’re welcome,
Just added some sub menus to my menu and broke it :(
Who would have thought making a menu would be so hard?
What do those
tags do?
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.