Copy link to clipboard
Copied
Hi all,
I have an accordion with text in the bar. I would like it to say read more and read less when expanded. Below is my code. How would I be able to do this? CSS?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Slide Panels</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:400,600" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,700" rel="stylesheet">
<style>
}
* {
box-sizing: border-box;
}
.accordion_wrapper {
width: 75%;
margin: 0 auto;
}
@media screen and (max-width: 768px) {
.accordion_wrapper {
width: 90%;
}
}
@media screen and (max-width: 480px) {
.accordion_wrapper {
width: 95%;
}
}
.accordion {
position: relative;
border-radius: 50px;
padding: 10px;
margin: 0 0 10px 0;
}
.accordion h3 {
margin: 0;
padding: 0;
font-size: 21px;
font-weight: 400;
text-align: center;
font-family: Roboto, sans-serif;
}
.accordion h3:after {
float: right;
content: '\002B';
color: #777;
font-weight: bold;
font-size: 25px;
line-height:30px;
}
.active h3:after {
float: right;
content: "\2212";
color: #777;
font-weight: bold;
font-size: 30px;
font-family: Roboto, sans-serif;
}
.accordion_panel {
padding: 20px 30px 30px 30px;
color: #fff;
text-align: left;
}
.accordion_panel h3 {
margin: 0;
padding: 0 0 15px 0;
font-size: 25px;
font-weight: 600;
text-align: left;
}
.accordion_panel p {
margin: 0;
padding: 0;
text-align: left;
}
.accordion_panel li {
margin: 0 0 15px 0px;
text-align:left;
}
.accordion_panel ul {
margin: 0 0 0 15px;
text-align:left;
}
.one {
background-color: #ffc627;
}
.two {
background-color: #99cccc;
}
.three {
background-color: #0099cc;
}
</style>
</head>
<body>
<div class="accordion_wrapper">
<div class="accordion one">
<h3>(place holder)</h3>
</div>
<!-- end accordion/one -->
<div class="accordion_panel">
<span style="font-size:20px;line-height:2;font-family: Roboto, sans-serif;font-weight:300;color:#000000;"><i aria-hidden="true" class="fa fa-chevron-right"> </i> physician-led structure with effective physician champions<br />
<i aria-hidden="true" class="fa fa-chevron-right"> </i> high levels of trust between administrative and clinical leaders<br />
<i aria-hidden="true" class="fa fa-chevron-right"> </i> collaborative culture that encourages cost-effective care</span><span style="font-size:16px;font-family: Roboto, sans-serif;"> </span>
<p> </p>
</div>
<!-- end accordion_panel -->
</div>
<!-- end accordion_wrapper -->
</body>
</html>
The text should replace the bold below, between the apostrophes:
.accordion h3:after {
float: right;
content: '\002B';
color: #777;
font-weight: bold;
font-size: 25px;
line-height:30px;
}
.active h3:after {
float: right;
content: "\2212";
color: #777;
font-weight: bold;
font-size: 30px;
font-family: Roboto, sans-serif;
}
Copy link to clipboard
Copied
pziecina wrote
osgood_ wrote
Well yes, but Im struggling to make myself understood that I work for clients on limited budgets. I already put more time in than i ever charge for and I dont think that is abnormal for a freelance web-developer. That is why I keep saying its getting beyond a joke now to be a 'lone' web-developer because not only do we have to constantly keep learning or sell our souls to the devil by using frameworks, extentions and tools that are supposed to write the code for you which generally fall woefully short but we have to learn to cater for minorities as well. Its just not possible as an individaul web-develeloper to do that, maybe a team with dedicated experts and big budgets, yes.
If it means small companies cant participate then so be it but hey the web is a mess, mess, mess - always has been and always will be.
It is a myth held by many freelancers and self-employed that salaried developers work less and are paid more. We may have guaranteed pay month in, month out, but we seldom work much less than 60hrs per week, (more when the deadline approaches) and that is not counting the 5-10 hrs per week, (at least) we spend learning, or re-reading specs and then 'playing with the code' to learn how to code what we learn.
It is a constant learning process for anyone serious about developing sites or browser based apps. That applies to any and everyone.
Well yes but at least you get at least 4 weeks annual paid leave and have back-up support. You know a problem shared is a problem halved mentality.
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
I'm just curious, have you ever met and discussed the web browsing issues that a person with reduced visibility encounters, much other than by what is reported on this or that press article
Sure, have you ever had a cateract........................?????
I'm not sure I would expect to be treated as a special case though if it meant impinging on someone else having to go out of their way to learn something just to cater for me. It would be nice but as I said earlier I dont think most people with disabilities or accessibility issues expect anything.
Id love to see the web completley cleaned up and websites that cater for all but that's not down to me that's down to the silly donkies that run it and for some reason, ask them why, they don't think its imporant to stop any old Tom, Dick or Harry from publishing rubbish, most of it infact is rubbish in terms of usability and accessibility, on the other hand you are the one that wants a free for all yet expects accessibilty, it aint happening.........go figure...
Copy link to clipboard
Copied
osgood_ wrote
Its like saying 'Its easy when you know how or why' of course it is and will be
There is of course the legal requirement to make a commercial or government agency site accessible, if you live in the EU. The USA is still unclear as to the legal requirerment, with some states for and some against, but any country with a trade agreement with the EU, has also the clause to make commercial sites accessible, (gov sites requirements are still upto that country in such cases).
The main problem with accessibility though, (on many sites) is that they either don't do anything, (better than the next category though) or fill the site with so much accessibility code, that it becomes meaningless, (look at many framework sites for examples).
Accessibility is for most sites easy to learn, it is when developers who do not even look at the requirerments, and rely on 'hearsay' that make its inclussion difficult, (a little knowledge is in accessibility terms, dangerous).
Copy link to clipboard
Copied
pziecina wrote
The main problem with accessibility though, (on many sites) is that they either don't do anything, (better than the next category though) or fill the site with so much accessibility code, that it becomes meaningless, (look at many framework sites for examples).
I generally have zero idea what they mean so I remove them as they clog up the code and get in my way (slow me down) if I ever have to work with them. Maybe web-developers need some kind of action group which addresses their needs, problems and issues! The whole worlds gone crazy!
Copy link to clipboard
Copied
osgood_ wrote
Maybe web-developers need some kind of action group which addresses their needs, problems and issues! The whole worlds gone crazy!
As I have said before, if developers used html5 semantic mark-up, 75% of accessibility is built-in. The problems start when developers start to throw everything on a single page, (except the kitchen sink) such as animations, lightboxes, video/audio, carousels, interactive maps, (with arrow showing buisnesses location, but no written info) and every visual interaction they or the client can think of, (js or whatever).
Copy link to clipboard
Copied
pziecina wrote
osgood_ wrote
Maybe web-developers need some kind of action group which addresses their needs, problems and issues! The whole worlds gone crazy!
As I have said before, if developers used html5 semantic mark-up, 75% of accessibility is built-in. The problems start when developers start to throw everything on a single page, (except the kitchen sink) such as animations, lightboxes, video/audio, carousels, interactive maps, (with arrow showing buisnesses location, but no written info) and every visual interaction they or the client can think of, (js or whatever).
Show me a website these days which doesnt include the kitchen sink. Birnou in the past has said the web should be a free for all, which I disagree with, therefore if I dont know much about accessibilty what's the chances those with less skils and knowledge than myself do. I have no issue with making the web a closed shop for only those that are expertly trained and their sites need to go through a stringent test to be published. You cant have it both ways and expect it too work well, the web is its own worst enemy for not being more selective about who can publish, based on given critera and who cant.
Copy link to clipboard
Copied
The problem with the web is not that it is a 'free for all', more that it is for most designers/developers a living, which requires money to become part of the equation. Just read the posts complaining about the demise of Muse, or even visit the Dw pre-release, almost all participants have no idea about what should be web design/development general knowledge 101, and most Muse users, (and many 'adobe experts') bring it down to 'easy to do' and dam the requirements.
Copy link to clipboard
Copied
pziecina wrote
Just read the posts complaining about the demise of Muse...
I know. It is scary how many people claim they "do this for a living" and don't have the slightest idea how to do very basic stuff without help. It's like the cashier at my market who couldn't add & subtract during a power failure. She had to borrow a calculator from someone to figure out exact change.
Copy link to clipboard
Copied
I absolutely agree and its getting worse as these no coding necessary editors are rolled out. The questions being asked on their forums by some users claiming to be web developers are shocking.
If we are required by law to adhere to rules and regulations so more people, particularly those with accessibiliy issues, can participate more comfortably then there needs to be a rethink in terms of monitoring what can be published.before its published, effectively over a period of time cleaning up the web.
Possibly browser produces should be at the centre of this blocking any website which didnt adhere to a set of accessibility rules. Im sure its possible as Google have done similar if your maps dont have an api key. Over a period of years it would weed out the good from the bad. It would be a diffetent web of course but one with more quality control , less information, if that is what is needed. You cant just throw open the doors and let anyone publish if you expect strict critera to be followed.
Copy link to clipboard
Copied
osgood_ a écrit
Birnou in the past has said the web should be a free for all, which I disagree with, therefore
in saying that I never said that the web should become everything and anything, I was just saying that the web should be accessible to everyone to create content... now visual software publishers should anticipate and take into consideration the right rules for content deployment... by making it compliant with recommendations, portable on various devices and accessible to people with disabilities, including keyboard navigation, or intended for foreign language users for example
so, having said that, I was saying that yes, development solutions should be open to non-developers... so open and free to all... nuance
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
osgood_ a écrit
Birnou in the past has said the web should be a free for all, which I disagree with, therefore
in saying that I never said that the web should become everything and anything, I was just saying that the web should be accessible to everyone to create content... now visual software publishers should anticipate and take into consideration the right rules for content deployment... by making it compliant with recommendations, portable on various devices and accessible to people with disabilities, including keyboard navigation, or intended for foreign language users for example
But the fact is they are not or the people who use those kinds of workflows arent interested or more like dont know anything about accessibity. You're living in some kind of fantasy world where you make things up to satisfy your own beliefs. IF we are to ahere to rules and regulations, I have no issues with that then its obvious the web cannot be open and free for anyone to publish. If it is then it is its own worst enemy as I have said in a previous post. Its no good complaining and moaning AFTER letting the horse bolt so to speak.
https://forums.adobe.com/people/B+i+r+n+o+u wrote
so, having said that, I was saying that yes, development solutions should be open to non-developers... so open and free to all... nuance
It should be open for anyone that wants to spend half their life implementing and researching the rules, regulations and workflows that developers are supposed to ahere to in their websites .......in that case very few would make a living. Its not realistic to do that unless the web shuts its doors to all but the very few who claim to know everything.
Copy link to clipboard
Copied
osgood_ a écrit
It should be open for anyone that wants to spend half their life implementing and researching the rules, regulations and workflows that developers are supposed to ahere to in their websites ......
do you say that, in the same way that you are willing to spend time observing the rules necessary to open the content of websites to all people with disabilities...
just curious ?
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
osgood_ a écrit
It should be open for anyone that wants to spend half their life implementing and researching the rules, regulations and workflows that developers are supposed to ahere to in their websites ......
do you say that, in the same way that you are willing to spend time observing the rules necessary to open the content of websites to all people with disabilities...
just curious ?
Sure. I'd like to see stricter controls bought in before anything can be published. It would clean up the profession considerably. I have zero issue with that and if part of the process is the inclusion of introducing good accessibiliy that's fine. I could then pass the costs of any research/testing needed onto the client just like I can anything else they require but I don't think accessibilty is treated with the consideration it should be by either client or developer.
Copy link to clipboard
Copied
osgood_ a écrit
if I dont know much about accessibilty what's the chances those with less skils and knowledge than myself do.
I don't think anyone has the science behind it.
We all have different profiles, and that is what makes our exchanges so rich.
Some are more designer than others, others are more oriented towards pure code and its rigour, some develop a sensitivity to accessibility, or referencing, ergonomics and user interface. Let's not talk about content strategists and media optimizer
And that's not to mention the information architecture, with its approach to tree structure and labelling, or even surface occupancy.
Let us not forget also the management of data with relational tables and embedded procedures , or pure JSON formated datas, which alone require often advanced expertise when it comes to making these data speak, and then let us not forget the security of these data and in the more general sense of our applications and servers.....
in short... it is also a little bit for this reason that teams exist, that collaborative work becomes more and more a necessity with the decentralization of these same teams and that the man orchestrates, or the five-legged sheep becomes a more and more rare commodity
anyway, if we're only talking about good accessibility rules, these few links can be interesting and I encourage everyone who develops sites or applications to check them out from time to time
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
osgood_ a écrit
if I dont know much about accessibilty what's the chances those with less skils and knowledge than myself do.
I don't think anyone has the science behind it.
We all have different profiles, and that is what makes our exchanges so rich.
Some are more designer than others, others are more oriented towards pure code and its rigour, some develop a sensitivity to accessibility, or referencing, ergonomics and user interface. Let's not talk about content strategists and media optimizer
And that's not to mention the information architecture, with its approach to tree structure and labelling, or even surface occupancy.
Let us not forget also the management of data with relational tables and embedded procedures , or pure JSON formated datas, which alone require often advanced expertise when it comes to making these data speak, and then let us not forget the security of these data and in the more general sense of our applications and servers.....
in short... it is also a little bit for this reason that teams exist, that collaborative work becomes more and more a necessity with the decentralization of these same teams and that the man orchestrates, or the five-legged sheep becomes a more and more rare commodity
anyway, if we're only talking about good accessibility rules, these few links can be interesting and I encourage everyone who develops sites or applications to check them out from time to time
Agreed and one person cannot be an expert in all those critera you mention so the web is never going to be 100% perfect unless you police the content before its published. I don't think anyone goes out of their way to deliberately make it difficult for those with disabilities. Small companies, individual devlopers just dont have the knowledge, time and maybe budgets to even consider it.
Copy link to clipboard
Copied
osgood_ a écrit
Agreed and one person cannot be an expert in all those critera you mention so the web is never going to be 100% perfect unless you police the content before its published. I don't think anyone goes out of their way to deliberately make it difficult for those with disabilities. Small companies, individual devlopers just dont have the knowledge, time and maybe budgets to even consider it.
nothing beats teamwork. Everyone can complement each other with their skills and fields of action.
in the end it does not cost customers more, and above all the development is done by trying to respect as best as possible (nothing is perfect) the expectations, even if users are often unaware of it...
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
osgood_ a écrit
Agreed and one person cannot be an expert in all those critera you mention so the web is never going to be 100% perfect unless you police the content before its published. I don't think anyone goes out of their way to deliberately make it difficult for those with disabilities. Small companies, individual devlopers just dont have the knowledge, time and maybe budgets to even consider it.
nothing beats teamwork. Everyone can complement each other with their skills and fields of action.
in the end it does not cost customers more, and above all the development is done by trying to respect as best as possible (nothing is perfect) the expectations, even if users are often unaware of it...
How can you say teamwork doesn't cost the customer more, that is just plainly not true. A team needs offices, sales-people, its expensive to to feed a team of 'experts' as opposed to an individual who may just have a small office and small overheads. I do everything from designing a website, to coding the front-end, looking at the architecture of the back-end and coding the back-end, liasing with the client and in my spare time I learn current workflows...........I can't be perfect and know everything. I cater for clients with limited budgets. You should try it sometime, it might bring you back down to reality if you have been used to working in larger teams.
Copy link to clipboard
Copied
osgood_ a écrit
How can you say teamwork doesn't cost the customer more, that is just plainly not true. A team needs offices, sales-people, its expensive to to feed a team of 'experts' as opposed to an individual who may just have a small office and small overheads.
well ,
A decade ago, this was the case, nowadays thanks to the Internet, the mutualised platform and the democratization of companies, it is very easy to work on projects by pooling our respective expertise.
a designer can be in Switzerland, the information architect in the United States, the accessibility expert in Marseille, the project manager in Paris, the style coding specialist in Belgium, the server and database administrator in Belgium too, and the coder blooming in a lavender field... and finally the final customer in Sweden... this is of course an example...
the final cost will be the same for the customer, alone, each of us will of course perceive less than if he had occupied all the positions... but that doesn't matter... projects are not missing and the time spent on each of the modules being distributed, this ultimately leads to the same except that the quality of the projects is increased
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
osgood_ a écrit
How can you say teamwork doesn't cost the customer more, that is just plainly not true. A team needs offices, sales-people, its expensive to to feed a team of 'experts' as opposed to an individual who may just have a small office and small overheads.
well ,
A decade ago, this was the case, nowadays thanks to the Internet, the mutualised platform and the democratization of companies, it is very easy to work on projects by pooling our respective expertise.
a designer can be in Switzerland, the information architect in the United States, the accessibility expert in Marseille, the project manager in Paris, the style coding specialist in Belgium, the server and database administrator in Belgium too, and the coder blooming in a lavender field... and finally the final customer in Sweden... this is of course an example...
the final cost will be the same for the customer, alone, each of us will of course perceive less than if he had occupied all the positions... but that doesn't matter... projects are not missing and the time spent on each of the modules being distributed, this ultimately leads to the same except that the quality of the projects is increased
It never works because of the time difference. A team which is do diversly seperated is NOT a team in the respect that I would recognise it as a team. If I were a client I would expect answer within minutes not have to wait for some geek to wake up in another country whilst I was just going to bed.
Copy link to clipboard
Copied
osgood_ a écrit
It never works because of the time difference. A team which is do diversly seperated is NOT a team in the respect that I would recognise it as a team. If I were a client I would expect answer within minutes not have to wait for some geek to wake up in another country whilst I was just going to bed.
we must then be an exception, (Joke, I know so much people working that way) but with many partners and clients, we have been working in this way for a few years now... our customers have never been full of any delay.
the learning curriculum is permanent, thanks to the web again, it is possible to participate in various forums, seminars, attend conferences, work on working groups especially on metadata, speak on attendees to share our views... the hours are endless... but we are not full of it and what a pleasure to exchange with so many people scattered around the globe and driven by the same passion....
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
we must then be an exception, (Joke, I know so much people working that way) but with many partners and clients, we have been working in this way for a few years now... our customers have never been full of any delay.
Well you would not survive in my world then because my clients expect answers almost immediately and I think I should be in a position to provide them, not wait several hours for someone from a different country to provide the answer as you must have to. Exactly why I wont use overseas hosting because they are never available when you need them most, depite the broken promises. I prefer a much more exclusive set-up for my clients who know exactly when and who they can speak to.
https://forums.adobe.com/people/B+i+r+n+o+u wrote
the learning curriculum is permanent, thanks to the web again, it is possible to participate in various forums, seminars, attend conferences, work on working groups especially on metadata, speak on attendees to share our views... the hours are endless... but we are not full of it and what a pleasure to exchange with so many people scattered around the globe and driven by the same passion....
Perhaps you are at the height of your career..........you might not be saying that in 20 years or so.....times change and priorities change.
Copy link to clipboard
Copied
osgood_ a écrit
Well you would not survive in my world then because my clients expect answers almost immediately and I think I should be in a position to provide them, not wait several hours for someone from a different country to provide the answer as you must have to. Exactly why I wont use overseas hosting because they are never available when you need them most, depite the broken promises. I prefer a much more exclusive set-up for my clients who know exactly when and who they can speak to.
I don't know what kind of applications you're working on. For my part, the projects in which I participate aim to meet the internal application needs of each of our clients.
the sectors of activity concerned affect both industrial sectors, as well as the tertiary sector with the insurance of merchant ships or the medical sector with decision support tools.
for each of the projects, we mainly use dedicated, or virtual (VPS), servers, which for legality reasons are generally located in our customers' countries
latency, and the expected reactivity rate can vary between immediacy and overnight for the next day... it all depends on the project and the importance of the change to be made.
Nevertheless, and for a very long time, we have adopted an agile deployment method, which means that we are continuously working on the project simultaneously with users. Specifications are constantly evolving and the application must adapt almost in real time.
working off-site, with partners and customers in different countries, in multiple sessions, has never bothered us or our customers
Perhaps you are at the height of your career..........you might not be saying that in 20 years or so.....times change and priorities change.
maybe, and as Forest's mother said, we never know what tomorrow will be like... Anyway, projects and learning both combine in the present, and since 1980, when I started to develop, I have been learning, I have always learned and I hope to continue to learn because I like it
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
osgood_ a écrit
Well you would not survive in my world then because my clients expect answers almost immediately and I think I should be in a position to provide them, not wait several hours for someone from a different country to provide the answer as you must have to. Exactly why I wont use overseas hosting because they are never available when you need them most, depite the broken promises. I prefer a much more exclusive set-up for my clients who know exactly when and who they can speak to.
I don't know what kind of applications you're working on. For my part, the projects in which I participate aim to meet the internal application needs of each of our clients.
working off-site, with partners and customers in different countries, in multiple sessions, has never bothered us or our customers
If it doesnt bother you or your customers thats fine, although I find it hard to believe it can be as unified and streamlined as a team working in the one location where time barriers are consitant. Maybe your clients are happy to wait, mine generally are not. I can well believe your workflow, as customer service today is not what it used to be and the generally poor service of today could now be termed as 'normal'.
Copy link to clipboard
Copied
osgood_ a écrit
If it doesnt bother you or your customers thats fine, although I find it hard to believe it can be as unified and streamlined as a team working in the one location where time barriers are consitant. Maybe your clients are happy to wait, mine generally are not.
Have you ever really tried a project management and collaborative work platform, have you tried to work in a team with GIT, do you have an idea of how more and more large decentralized agencies are working...
Besides, why do you think our customers expect... what makes you say that?
Copy link to clipboard
Copied
https://forums.adobe.com/people/B+i+r+n+o+u wrote
osgood_ a écrit
If it doesnt bother you or your customers thats fine, although I find it hard to believe it can be as unified and streamlined as a team working in the one location where time barriers are consitant. Maybe your clients are happy to wait, mine generally are not.
Have you ever really tried a project management and collaborative work platform, have you tried to work in a team with GIT, do you have an idea of how more and more large decentralized agencies are working...
Yes, to me its a PITA having to work with other developers/agenies because in my experience they are usually indecisive, whereas I like to work very fast and make quick decisions and use uncomplicated workflows, not ones which are generally over-engineered for what is required. In that respect thats not easy to seperate the wheat from the chaff. I've had my fair share of being involved in big 'international' team work environments where the left hand doesn't always know/agree with what the right hand is doing. Not really my thing to sit around and listen to a lot of 'experts' mostly talking bullcrap - I get on and do the job, not talk about it. That just my opinion, others experience will vary of course
Find more inspiration, events, and resources on the new Adobe Community
Explore Now